Skip to content

Commit

Permalink
refresh client if pylance client option is changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
heejaechang committed Oct 3, 2022
1 parent 16cc234 commit 6dd7a53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/client/languageServer/watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,10 @@ export class LanguageServerWatcher implements IExtensionActivationService, ILang
const workspacesUris = this.workspaceService.workspaceFolders?.map((workspace) => workspace.uri) ?? [];

workspacesUris.forEach(async (resource) => {
if (event.affectsConfiguration(`python.languageServer`, resource)) {
if (
event.affectsConfiguration(`python.languageServer`, resource) ||
event.affectsConfiguration(`python.analysis.pylanceLspClientEnabled`, resource)
) {
await this.refreshLanguageServer(resource);
}
});
Expand Down

0 comments on commit 6dd7a53

Please sign in to comment.