File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff 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 } ` ,
You can’t perform that action at this time.
0 commit comments