-
Notifications
You must be signed in to change notification settings - Fork 34.6k
Extract autosuggest editor to own class; bring into settings #55924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract autosuggest editor to own class; bring into settings #55924
Conversation
bring into settings
This probably breaks some smoke tests. We'll see. |
|
||
.autosuggest-input-container .suggest-widget { | ||
width: 275px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
this.searchWidget = this._register(this.instantiationService.createInstance(AutosuggestEnabledInput, `${SettingsEditor2.ID}.searchbox`, searchContainer, { | ||
triggerCharacters: ['@'], | ||
provideResults: (query: string) => { | ||
return ['@modified', '@tag:usesOnlineServices'].filter(tag => query.indexOf(tag) === -1).map(tag => tag + ' '); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without actually trying this, does this mean that if I type @mod
it will still return @tag:usesOnlineServices
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The filtering is handled externally. This controls the base options. So if you have @modified
in your query already, it wont suggest it again. If you type @
, @tag:usesOnlineServices
will appear, but if you go on to type m
, it will go away.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The settings side of this at least looks good to me
@ramya-rao-a do you have input on the location of these files? Right now I'm putting them under |
Should the new class be |
8c1d305
to
6f10ff7
Compare
@roblourens good point, made the change. |
Hey @ramya-rao-a could you take a look? |
This closes #55804.