File tree 1 file changed +8
-2
lines changed 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,14 @@ export class InterpreterPathService implements IInterpreterPathService {
77
77
this . workspaceService . getConfiguration ( 'python' , resource ) ?. inspect < string > ( 'defaultInterpreterPath' ) ?? { } ;
78
78
return {
79
79
globalValue : defaultInterpreterPath . globalValue ,
80
- workspaceFolderValue : workspaceFolderSetting ?. value || defaultInterpreterPath . workspaceFolderValue ,
81
- workspaceValue : workspaceSetting ?. value || defaultInterpreterPath . workspaceValue ,
80
+ workspaceFolderValue :
81
+ ! workspaceFolderSetting ?. value || workspaceFolderSetting ?. value === 'python'
82
+ ? defaultInterpreterPath . workspaceFolderValue
83
+ : workspaceFolderSetting . value ,
84
+ workspaceValue :
85
+ ! workspaceSetting ?. value || workspaceSetting ?. value === 'python'
86
+ ? defaultInterpreterPath . workspaceValue
87
+ : workspaceSetting . value ,
82
88
} ;
83
89
}
84
90
You can’t perform that action at this time.
0 commit comments