Rename jsDocCompletion.enabled to javascript.suggest.completeJsDocs and typescript.suggest.completeJsDocs

Fixes #67146
This commit is contained in:
Matt Bierner
2019-01-28 14:03:20 -08:00
parent 58d3dade0e
commit 807759ecff
4 changed files with 19 additions and 3 deletions

View File

@@ -112,9 +112,10 @@ export function templateToSnippet(template: string): vscode.SnippetString {
export function register(
selector: vscode.DocumentSelector,
modeId: string,
client: ITypeScriptServiceClient,
): vscode.Disposable {
return new ConfigurationDependentRegistration('jsDocCompletion', 'enabled', () => {
return new ConfigurationDependentRegistration(modeId, 'suggest.completeJSDocs', () => {
return vscode.languages.registerCompletionItemProvider(selector,
new JsDocCompletionProvider(client),
'*');

View File

@@ -65,7 +65,7 @@ export default class LanguageProvider extends Disposable {
this._register((await import('./features/hover')).register(selector, this.client));
this._register((await import('./features/implementations')).register(selector, this.client));
this._register((await import('./features/implementationsCodeLens')).register(selector, this.description.id, this.client, cachedResponse));
this._register((await import('./features/jsDocCompletions')).register(selector, this.client));
this._register((await import('./features/jsDocCompletions')).register(selector, this.description.id, this.client));
this._register((await import('./features/organizeImports')).register(selector, this.client, this.commandManager, this.fileConfigurationManager, this.telemetryReporter));
this._register((await import('./features/quickFix')).register(selector, this.client, this.fileConfigurationManager, this.commandManager, this.client.diagnosticsManager, this.telemetryReporter));
this._register((await import('./features/fixAll')).register(selector, this.client, this.fileConfigurationManager, this.client.diagnosticsManager));