Skip to content

Commit 5f68c5e

Browse files
authored
feat: add Setting ID filter for reference (microsoft#249674)
* feat: add settings ID filter for reference * Fix grammar
1 parent f932a59 commit 5f68c5e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/vs/workbench/contrib/preferences/browser/settingsSearchMenu.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { SuggestController } from '../../../../editor/contrib/suggest/browser/su
1111
import { localize } from '../../../../nls.js';
1212
import { IContextMenuService } from '../../../../platform/contextview/browser/contextView.js';
1313
import { SuggestEnabledInput } from '../../codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js';
14-
import { EXTENSION_SETTING_TAG, FEATURE_SETTING_TAG, GENERAL_TAG_SETTING_TAG, LANGUAGE_SETTING_TAG, MODIFIED_SETTING_TAG, POLICY_SETTING_TAG } from '../common/preferences.js';
14+
import { EXTENSION_SETTING_TAG, FEATURE_SETTING_TAG, GENERAL_TAG_SETTING_TAG, ID_SETTING_TAG, LANGUAGE_SETTING_TAG, MODIFIED_SETTING_TAG, POLICY_SETTING_TAG } from '../common/preferences.js';
1515

1616
export class SettingsSearchFilterDropdownMenuActionViewItem extends DropdownMenuActionViewItem {
1717
private readonly suggestController: SuggestController | null;
@@ -141,6 +141,13 @@ export class SettingsSearchFilterDropdownMenuActionViewItem extends DropdownMenu
141141
localize('policySettingsSearch', "Policy services"),
142142
localize('policySettingsSearchTooltip', "Show settings for policy services"),
143143
`@${POLICY_SETTING_TAG}`
144+
),
145+
this.createAction(
146+
'idSettingsSearch',
147+
localize('idSettingsSearch', "Setting ID"),
148+
localize('idSettingsSearchTooltip', "Add Setting ID filter"),
149+
`@${ID_SETTING_TAG}`,
150+
false
144151
)
145152
];
146153
}

0 commit comments

Comments
 (0)