We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96b4412 commit 3d3c444Copy full SHA for 3d3c444
src/client/activation/languageClientMiddlewareBase.ts
@@ -87,11 +87,8 @@ export class LanguageClientMiddlewareBase implements Middleware {
87
i
88
] as LSPObject & { pythonPath: string; _envPYTHONPATH: string };
89
90
- settingDict.pythonPath = await this.getPythonPathOverride(uri);
91
-
92
- if (!settingDict.pythonPath) {
93
- settingDict.pythonPath = configService.getSettings(uri).pythonPath;
94
- }
+ settingDict.pythonPath =
+ (await this.getPythonPathOverride(uri)) ?? configService.getSettings(uri).pythonPath;
95
96
const env = await envService.getEnvironmentVariables(uri);
97
const envPYTHONPATH = env.PYTHONPATH;
0 commit comments