mirror of
https://github.com/Microsoft/vscode
synced 2024-10-31 11:34:45 +00:00
Settings editor - also show 'new' tag in suggestions
This commit is contained in:
parent
75be73cb4b
commit
ffa660576d
1 changed files with 5 additions and 1 deletions
|
@ -50,6 +50,10 @@ export class SettingsEditor2 extends BaseEditor {
|
|||
|
||||
public static readonly ID: string = 'workbench.editor.settings2';
|
||||
|
||||
private static readonly SUGGESTIONS: string[] = [
|
||||
'@modified', '@tag:usesOnlineServices', '@tag:new'
|
||||
];
|
||||
|
||||
private defaultSettingsEditorModel: DefaultSettingsEditorModel;
|
||||
|
||||
private rootElement: HTMLElement;
|
||||
|
@ -210,7 +214,7 @@ export class SettingsEditor2 extends BaseEditor {
|
|||
this.searchWidget = this._register(this.instantiationService.createInstance(SuggestEnabledInput, `${SettingsEditor2.ID}.searchbox`, searchContainer, {
|
||||
triggerCharacters: ['@'],
|
||||
provideResults: (query: string) => {
|
||||
return ['@modified', '@tag:usesOnlineServices'].filter(tag => query.indexOf(tag) === -1).map(tag => tag + ' ');
|
||||
return SettingsEditor2.SUGGESTIONS.filter(tag => query.indexOf(tag) === -1).map(tag => tag + ' ');
|
||||
}
|
||||
}, searchBoxLabel, 'settingseditor:searchinput', {
|
||||
placeholderText: searchBoxLabel,
|
||||
|
|
Loading…
Reference in a new issue