From 269322685a1b51dd955e7dbffa3ac979ecfd3139 Mon Sep 17 00:00:00 2001 From: chemzqm Date: Wed, 31 Oct 2018 14:13:55 +0800 Subject: [PATCH] fix suggestionActions.enabled not works --- package.json | 5 +++-- src/server/languageProvider.ts | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 689c293..c9a6224 100644 --- a/package.json +++ b/package.json @@ -179,7 +179,7 @@ "type": "boolean", "default": false }, - "typescript.preferences.suggestionActions.enabled": { + "typescript.suggestionActions.enabled": { "type": "boolean", "default": true }, @@ -286,7 +286,7 @@ "type": "boolean", "default": false }, - "javascript.preferences.suggestionActions.enabled": { + "javascript.suggestionActions.enabled": { "type": "boolean", "default": true }, @@ -397,3 +397,4 @@ "which": "^1.3.1" } } + diff --git a/src/server/languageProvider.ts b/src/server/languageProvider.ts index ef8c5ba..332f6f0 100644 --- a/src/server/languageProvider.ts +++ b/src/server/languageProvider.ts @@ -73,6 +73,7 @@ export default class LanguageProvider { this.fileConfigurationManager.ensureConfigurationForDocument(doc.textDocument) // tslint:disable-line }, this, this.disposables) + this.configurationChanged() workspace.onDidChangeConfiguration(this.configurationChanged, this, this.disposables) let initialized = false