mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 09:38:38 +01:00
Rename jsDocCompletion.enabled to javascript.suggest.completeJsDocs and typescript.suggest.completeJsDocs
Fixes #67146
This commit is contained in:
@@ -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),
|
||||
'*');
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user