Fixed bug Jake found during code review — was using the wrong notification string.

This commit is contained in:
Eric Traut 2020-07-20 16:24:08 -07:00
parent c89b6a5abc
commit fba58a897d

View File

@ -26,6 +26,7 @@ import {
CancellationToken,
ConfigurationParams,
ConfigurationRequest,
DidChangeConfigurationNotification,
HandlerResult,
LanguageClient,
LanguageClientOptions,
@ -109,7 +110,9 @@ export function activate(context: ExtensionContext) {
return getPythonPathFromPythonExtension(languageClient.outputChannel, uri, () => {
// Posts a "workspace/didChangeConfiguration" message to the service
// so it re-queries the settings for all workspaces.
languageClient.sendRequest('workspace/executeCommand', {});
this.languageClient!.sendNotification(DidChangeConfigurationNotification.type, {
settings: null,
});
});
}
return Promise.resolve(undefined);