Skip to content

Commit ccc7750

Browse files
committed
Don't filter workspace folders with s2i comps from context quickpick
This PR fixes #2446. Signed-off-by: Denis Golovin dgolovin@redhat.com
1 parent 2b730e8 commit ccc7750

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/util/workspace.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,14 @@ export async function selectWorkspaceFolder(): Promise<Uri> {
2323
if (workspace.workspaceFolders && workspace.workspaceFolders.length > 0) {
2424
folder = workspace.workspaceFolders
2525
.filter((value) => {
26-
let odoS2iConfigFile = true;
27-
try {
28-
odoS2iConfigFile = !fs
29-
.statSync(path.join(value.uri.fsPath, '.odo', 'config.yaml')).isFile();
30-
} catch (ignore) {
31-
// ignore errors if file does not exist
32-
}
3326
let odoDevfileEnvFile = true;
3427
try {
3528
odoDevfileEnvFile = !fs
3629
.statSync(path.join(value.uri.fsPath, '.odo', 'env', 'env.yaml')).isFile();
3730
} catch (ignore) {
3831
// ignore errors if file does not exist
3932
}
40-
return odoS2iConfigFile && odoDevfileEnvFile;
33+
return odoDevfileEnvFile;
4134
})
4235
.map((wsFolder) => ({
4336
label: `$(file-directory) ${wsFolder.uri.fsPath}`,

0 commit comments

Comments
 (0)