Skip to content

Don't show existing filters in autocomplete#55495

Merged
ramya-rao-a merged 2 commits intomicrosoft:masterfrom
JacksonKearl:dont-show-existing-filters
Aug 1, 2018
Merged

Don't show existing filters in autocomplete#55495
ramya-rao-a merged 2 commits intomicrosoft:masterfrom
JacksonKearl:dont-show-existing-filters

Conversation

@JacksonKearl
Copy link
Contributor

Fixes #55489 by filtering out all @category:... or @search:... suggestions when there exists a complete @category:... or @search:... (respectively) in the query already.

@JacksonKearl JacksonKearl self-assigned this Jul 31, 2018
@JacksonKearl JacksonKearl requested a review from ramya-rao-a July 31, 2018 18:26
: [`@${command} `]));
commands.map(command => {
let commandContains = containsSub(command);
if (hasSort && commandContains('sort') || hasCategory && commandContains('category')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Dont we need an equals check here instead of contains?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Could you clarify?

@ramya-rao-a ramya-rao-a merged commit f543678 into microsoft:master Aug 1, 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.

Autosuggest in extension search suggests already used filters

2 participants