Skip to content

Commit 3d3c444

Browse files
committed
Updates after rebasing on top of LSP upgrade
1 parent 96b4412 commit 3d3c444

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/client/activation/languageClientMiddlewareBase.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,8 @@ export class LanguageClientMiddlewareBase implements Middleware {
8787
i
8888
] as LSPObject & { pythonPath: string; _envPYTHONPATH: string };
8989

90-
settingDict.pythonPath = await this.getPythonPathOverride(uri);
91-
92-
if (!settingDict.pythonPath) {
93-
settingDict.pythonPath = configService.getSettings(uri).pythonPath;
94-
}
90+
settingDict.pythonPath =
91+
(await this.getPythonPathOverride(uri)) ?? configService.getSettings(uri).pythonPath;
9592

9693
const env = await envService.getEnvironmentVariables(uri);
9794
const envPYTHONPATH = env.PYTHONPATH;

0 commit comments

Comments
 (0)