Align js/ts.suggest.completeJSDocs with other names

Fixes #298734

Aligning this to use the id `js/ts.suggest.jsdoc.enabled` because we have another setting in the `#js/ts.suggest.jsdoc.*` scope
This commit is contained in:
Matt Bierner
2026-03-02 08:26:55 -08:00
parent 68f4b3a2dc
commit c100c1fd24
3 changed files with 7 additions and 7 deletions

View File

@@ -46,7 +46,7 @@ class JsDocCompletionProvider implements vscode.CompletionItemProvider {
position: vscode.Position,
token: vscode.CancellationToken
): Promise<vscode.CompletionItem[] | undefined> {
if (!readUnifiedConfig<boolean>('suggest.completeJSDocs', true, { scope: document, fallbackSection: this.language.id })) {
if (!readUnifiedConfig<boolean>('suggest.jsdoc.enabled', true, { scope: document, fallbackSection: this.language.id, fallbackSubSectionNameOverride: 'suggest.completeJSDocs' })) {
return undefined;
}