fix suggestionActions.enabled not works

This commit is contained in:
chemzqm 2018-10-31 14:13:55 +08:00
parent 5be25f96dc
commit 269322685a
2 changed files with 4 additions and 2 deletions

View file

@ -179,7 +179,7 @@
"type": "boolean", "type": "boolean",
"default": false "default": false
}, },
"typescript.preferences.suggestionActions.enabled": { "typescript.suggestionActions.enabled": {
"type": "boolean", "type": "boolean",
"default": true "default": true
}, },
@ -286,7 +286,7 @@
"type": "boolean", "type": "boolean",
"default": false "default": false
}, },
"javascript.preferences.suggestionActions.enabled": { "javascript.suggestionActions.enabled": {
"type": "boolean", "type": "boolean",
"default": true "default": true
}, },
@ -397,3 +397,4 @@
"which": "^1.3.1" "which": "^1.3.1"
} }
} }

View file

@ -73,6 +73,7 @@ export default class LanguageProvider {
this.fileConfigurationManager.ensureConfigurationForDocument(doc.textDocument) // tslint:disable-line this.fileConfigurationManager.ensureConfigurationForDocument(doc.textDocument) // tslint:disable-line
}, this, this.disposables) }, this, this.disposables)
this.configurationChanged()
workspace.onDidChangeConfiguration(this.configurationChanged, this, this.disposables) workspace.onDidChangeConfiguration(this.configurationChanged, this, this.disposables)
let initialized = false let initialized = false