Skip to content

Commit 946b27c

Browse files
Change the condition
1 parent 6d270f5 commit 946b27c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/recommendation/openShiftToolkit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function initializeRecommendation(context: vscode.ExtensionContext, handl
3939
})
4040
);
4141

42-
const isdevfileYAMLOpened = vscode.workspace.workspaceFolders?.findIndex((workspace) => isDevfileYAML(workspace.uri)) === 0;
42+
const isdevfileYAMLOpened = vscode.workspace.workspaceFolders?.findIndex((workspace) => isDevfileYAML(workspace.uri)) > -1;
4343
if (isdevfileYAMLOpened) {
4444
handler.handle(EXTENSION_NAME, RECOMMENDATION_MESSAGE);
4545
}

0 commit comments

Comments
 (0)