-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Search relevance in Quick Pick control #18003
Comments
From @ahmetalpbalkan on December 18, 2016 2:16 This is still very much an issue. |
The Go extension uses the When user enters text to filter through such a list, the first item is always the default selected item. |
I think what we do today in the picker is just to preserve the order of elements as they where given to the picker API. Since the sorting order can be very much dependent on the context, I think we should have a way for API users to control the sorting behaviour for matching elements. |
Disagree, because we allow multiple provider to contribute to that UI at the same time. Therefore a provider cannot define the sort order of n merged results. The issue about us not being smart in picking stuff from quick pick |
@jrieken can you give an example where multiple providers add stuff to the |
Sorry, I miss read this is about quick pick. However, the more general case of navigate types (in file, in workspace) has this problem and provider-scope ranking/sorting is not an option there. I am not a fan of putting the burden on the extension writer for this as quick pick is about selecting an element from a list of static elements. To me there some pretty obvious failure of our ranking algorithm as not |
@ramya-rao-a I pushed a change to use our typical sorter that we use in other quick open handlers too. What would be the best way of verifying this issue using the go extension? |
You can run the |
There was no change in the relevance sorting for the command palette btw. |
Can you open a separate issue for #18003 (comment) which is about the commands in the command pallet. The original issue here was about the quick pick control (which in this particular case was when the The fix for the original issue is available in the insiders build, just tested it. |
@ramya-rao-a did you verify this fix, then could you maybe add the verified label? As for the command palette this is #14727 |
Verified. |
From @ahmetalpbalkan on July 12, 2016 22:18
Obviously
os
should be the first output here:In this case
io
is literally at the endCopied from original issue: microsoft/vscode-go#390
The text was updated successfully, but these errors were encountered: