Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/client/common/interpreterPathService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ export class InterpreterPathService implements IInterpreterPathService {
const globalValue = pythonConfig.inspect<string>('defaultInterpreterPath')!.globalValue;
if (globalValue !== pythonPath) {
await pythonConfig.update('defaultInterpreterPath', pythonPath, true);
this._didChangeInterpreterEmitter.fire({ uri: undefined, configTarget });
}
return;
}
Expand Down
4 changes: 4 additions & 0 deletions src/client/languageServer/watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@ export class LanguageServerWatcher

// Watch for interpreter changes.
private async onDidChangeInterpreter(event: InterpreterConfigurationScope): Promise<void> {
if (this.languageServerType === LanguageServerType.Node) {
// Pylance client already handles interpreter changes, so restarting LS can be skipped.
return Promise.resolve();
}
// Reactivate the language server (if in a multiroot workspace scenario, pick the correct one).
return this.activate(event.uri);
}
Expand Down