File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,8 +77,14 @@ export class InterpreterPathService implements IInterpreterPathService {
7777 this . workspaceService . getConfiguration ( 'python' , resource ) ?. inspect < string > ( 'defaultInterpreterPath' ) ?? { } ;
7878 return {
7979 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 ,
8288 } ;
8389 }
8490
You can’t perform that action at this time.
0 commit comments