Skip to content

Search relevance in Quick Pick control  #18003

Closed

Description

@ramya-rao-a

From ahmetalpbalkan (old account) (@ahmetalpbalkan) on July 12, 2016 22:18

Obviously os should be the first output here:

image

In this case io is literally at the end

image
image

Copied from original issue: microsoft/vscode-go#390

Activity

  1. ramya-rao-a commented on Jan 2, 2017

    @ramya-rao-a
    ContributorAuthor

    From ahmetalpbalkan (old account) (@ahmetalpbalkan) on December 18, 2016 2:16

    This is still very much an issue.

  2. changed the title [-]Search relevance in 'Add import'[/-] [+]Search relevance in Quick Pick control[/+] on Jan 2, 2017
  3. ramya-rao-a commented on Jan 2, 2017

    @ramya-rao-a
    ContributorAuthor

    The Go extension uses the vscode.window.showQuickPick to show list of packages that can be imported when the Go: Add Import command is run.

    When user enters text to filter through such a list, the first item is always the default selected item.
    This can be made smarter by choosing the item that matches the filter text the most instead.

  4. bpasero commented on Jan 3, 2017

    @bpasero
    Contributor

    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.

  5. added
    feature-request
    on Jan 3, 2017
  6. changed the title [-]Search relevance in Quick Pick control[/-] [+]Allow extensions to control search relevance in Quick Pick control[/+] on Jan 3, 2017
  7. changed the title [-]Allow extensions to control search relevance in Quick Pick control[/-] [+]Allow extensions to control search relevance in picker[/+] on Jan 3, 2017
  8. 6 remaining items

  9. jrieken commented on Jan 3, 2017

    @jrieken
    Contributor

    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 os (2 of 2 characters matched) but os/exec (2 of 7 characters matched) is pre-selected

  10. bpasero commented on Jan 4, 2017

    @bpasero
    Contributor

    Ramya Rao (@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?

  11. added
    verification-needed
    on Jan 4, 2017
  12. ramya-rao-a commented on Jan 4, 2017

    @ramya-rao-a
    ContributorAuthor

    You can run the Go: Add Import command in the command pallet. That will open a quick pick. Type away to filter

  13. added
    feature-request
    on Jan 8, 2017
  14. ahmetb commented on Jan 13, 2017

    @ahmetb

    I have been disabling all extensions for the 5th time now because it is the first option and not the "Install Extensions".

    image

  15. bpasero commented on Jan 14, 2017

    @bpasero
    Contributor

    There was no change in the relevance sorting for the command palette btw.

  16. ramya-rao-a commented on Jan 14, 2017

    @ramya-rao-a
    ContributorAuthor

    ahmetalpbalkan (old account) (@ahmetalpbalkan)

    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 Go: Add Import command was run).

    The fix for the original issue is available in the insiders build, just tested it.

  17. bpasero commented on Jan 23, 2017

    @bpasero
    Contributor

    Ramya Rao (@ramya-rao-a) did you verify this fix, then could you maybe add the verified label?

    As for the command palette this is #14727

  18. ramya-rao-a commented on Jan 23, 2017

    @ramya-rao-a
    ContributorAuthor

    Verified.

  19. locked and limited conversation to collaborators on Nov 18, 2017
  20. added a commit that references this issue on Sep 6, 2026
    19becb2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions