Skip to content

Remove unused properties from patternMatcher #23076

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

Merged
2 commits merged into from
Apr 2, 2018
Merged

Conversation

ghost
Copy link

@ghost ghost commented Apr 2, 2018

patternMatcher is only used in navigateTo. These two unused properties seem intended for comparing two matches to get a best match, but we don't actually do that -- we just use the matches for the kind and isCaseSensitive properties, and then we only care about the minimum kind over all matches and whether every match was case sensitive, and don't really care about individual matches. It's possible that we could ferry more information along and make compareNavigateToItems more complex, but don't know if that would be worth the trouble.

@ghost ghost force-pushed the patternMatcher_unused branch from e82ab53 to 1a5af5a Compare April 2, 2018 18:15
@ghost ghost merged commit 72e92a0 into master Apr 2, 2018
@ghost ghost deleted the patternMatcher_unused branch April 2, 2018 19:02
@microsoft microsoft locked and limited conversation to collaborators Jul 25, 2018
This pull request was closed.
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.

1 participant