From fba58a897d758a23c40fc28854cbef92911688fa Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Mon, 20 Jul 2020 16:24:08 -0700 Subject: [PATCH] =?UTF-8?q?Fixed=20bug=20Jake=20found=20during=20code=20re?= =?UTF-8?q?view=20=E2=80=94=20was=20using=20the=20wrong=20notification=20s?= =?UTF-8?q?tring.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/extension.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/extension.ts b/client/src/extension.ts index d63329229..8784c1932 100644 --- a/client/src/extension.ts +++ b/client/src/extension.ts @@ -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);