Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit df3ed6d

Browse files
author
Kartik Raj
authored
Corrected analysisOptions.ts bug (microsoft#5598)
* Changes to analysisOptions.ts * News entry
1 parent b1eef22 commit df3ed6d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

news/2 Fixes/5579.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Corrected analysisOptions.ts bug

src/client/activation/languageServer/analysisOptions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export class LanguageServerAnalysisOptions implements ILanguageServerAnalysisOpt
225225

226226
protected async notifyifEnvPythonPathChanged(): Promise<void> {
227227
const vars = await this.envVarsProvider.getEnvironmentVariables();
228-
const envPythonPath = vars.PYTHONPATH;
228+
const envPythonPath = vars.PYTHONPATH || '';
229229

230230
if (this.envPythonPath !== envPythonPath) {
231231
this.didChange.fire();

src/client/common/installer/pipEnvInstaller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class PipEnvInstaller extends ModuleInstaller implements IModuleInstaller
3434
const args = ['install', moduleName, '--dev'];
3535
if (moduleName === 'black') {
3636
args.push('--pre');
37-
};
37+
}
3838
return {
3939
args: args,
4040
execPath: pipenvName

0 commit comments

Comments
 (0)