From b3c0c092b332eb8f43fd1a31e2eeb4d4cc15ce62 Mon Sep 17 00:00:00 2001 From: Matt Bierner <12821956+mjbvz@users.noreply.github.com> Date: Tue, 10 Feb 2026 14:24:13 -0800 Subject: [PATCH] searchTerms -> keywords --- .../platform/configuration/common/configurationRegistry.ts | 4 ++-- src/vs/workbench/api/common/configurationExtensionPoint.ts | 4 ++-- .../contrib/preferences/browser/preferencesSearch.ts | 6 +++--- src/vs/workbench/services/preferences/common/preferences.ts | 2 +- .../services/preferences/common/preferencesModels.ts | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/vs/platform/configuration/common/configurationRegistry.ts b/src/vs/platform/configuration/common/configurationRegistry.ts index c26fc939188..f035cdec47c 100644 --- a/src/vs/platform/configuration/common/configurationRegistry.ts +++ b/src/vs/platform/configuration/common/configurationRegistry.ts @@ -201,9 +201,9 @@ export interface IConfigurationPropertySchema extends IJSONSchema { enumItemLabels?: string[]; /** - * Optional terms used for search purposes. + * Optional keywords used for search purposes. */ - searchTerms?: string[]; + keywords?: string[]; /** * When specified, controls the presentation format of string settings. diff --git a/src/vs/workbench/api/common/configurationExtensionPoint.ts b/src/vs/workbench/api/common/configurationExtensionPoint.ts index 6f777af406a..46304274ef0 100644 --- a/src/vs/workbench/api/common/configurationExtensionPoint.ts +++ b/src/vs/workbench/api/common/configurationExtensionPoint.ts @@ -116,12 +116,12 @@ const configurationEntrySchema: IJSONSchema = { type: 'boolean', description: nls.localize('scope.ignoreSync', 'When enabled, Settings Sync will not sync the user value of this configuration by default.') }, - searchTerms: { + keywords: { type: 'array', items: { type: 'string' }, - description: nls.localize('scope.searchTerms', 'A list of additional search terms that help users find this setting in the Settings editor. These are not shown to the user.') + description: nls.localize('scope.keywords', 'A list of keywords that help users find this setting in the Settings editor. These are not shown to the user.') }, tags: { type: 'array', diff --git a/src/vs/workbench/contrib/preferences/browser/preferencesSearch.ts b/src/vs/workbench/contrib/preferences/browser/preferencesSearch.ts index 0cfcac7318d..99fd9647231 100644 --- a/src/vs/workbench/contrib/preferences/browser/preferencesSearch.ts +++ b/src/vs/workbench/contrib/preferences/browser/preferencesSearch.ts @@ -242,9 +242,9 @@ export class SettingMatches { // Search the description if we found non-contiguous key matches at best. const hasContiguousKeyMatchTypes = this.matchType >= SettingMatchType.ContiguousWordsInSettingsLabel; if (this.searchDescription && !hasContiguousKeyMatchTypes) { - // Search the description lines and any additional search terms. - const searchableLines = setting.searchTerms?.length - ? [...setting.description, setting.searchTerms.join(' ')] + // Search the description lines and any additional keywords. + const searchableLines = setting.keywords?.length + ? [...setting.description, setting.keywords.join(' ')] : setting.description; for (const word of queryWords) { for (let lineIndex = 0; lineIndex < searchableLines.length; lineIndex++) { diff --git a/src/vs/workbench/services/preferences/common/preferences.ts b/src/vs/workbench/services/preferences/common/preferences.ts index 08cb72355db..106103bdd9f 100644 --- a/src/vs/workbench/services/preferences/common/preferences.ts +++ b/src/vs/workbench/services/preferences/common/preferences.ts @@ -64,7 +64,7 @@ export interface ISetting { value: any; valueRange: IRange; description: string[]; - searchTerms?: string[]; + keywords?: string[]; descriptionIsMarkdown?: boolean; descriptionRanges: IRange[]; overrides?: ISetting[]; diff --git a/src/vs/workbench/services/preferences/common/preferencesModels.ts b/src/vs/workbench/services/preferences/common/preferencesModels.ts index 79fc7bc33c5..a6e78cc1fa0 100644 --- a/src/vs/workbench/services/preferences/common/preferencesModels.ts +++ b/src/vs/workbench/services/preferences/common/preferencesModels.ts @@ -723,7 +723,7 @@ export class DefaultSettings extends Disposable { value, description: descriptionLines, descriptionIsMarkdown: !!prop.markdownDescription, - searchTerms: prop.searchTerms, + keywords: prop.keywords, range: nullRange, keyRange: nullRange, valueRange: nullRange,