Skip to content

Conversation

JacksonKearl
Copy link
Contributor

This closes #55804.

@JacksonKearl
Copy link
Contributor Author

This probably breaks some smoke tests. We'll see.

@JacksonKearl JacksonKearl self-assigned this Aug 6, 2018

.autosuggest-input-container .suggest-widget {
width: 275px;
}
Copy link
Contributor Author

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 + ' ');
Copy link
Member

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?

Copy link
Contributor Author

@JacksonKearl JacksonKearl Aug 8, 2018

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thanks

Copy link
Member

@roblourens roblourens left a 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

@JacksonKearl
Copy link
Contributor Author

@ramya-rao-a do you have input on the location of these files? Right now I'm putting them under src/vs/workbench/parts/codeEditor/ but I'm not sure if that's the right place.

@roblourens
Copy link
Member

Should the new class be SuggestEnabledInput since I don't think we use the "autosuggest" terminology elsewhere?

@JacksonKearl JacksonKearl force-pushed the settings-autosuggest branch from 8c1d305 to 6f10ff7 Compare August 8, 2018 17:55
@JacksonKearl
Copy link
Contributor Author

@roblourens good point, made the change.

@roblourens
Copy link
Member

Hey @ramya-rao-a could you take a look?

@JacksonKearl JacksonKearl merged commit 5e37f92 into microsoft:master Aug 10, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Intellisense in settings editor search bar for available filters
3 participants