Skip to content

Implement different sorting logic for add context quick pick #246541

Closed

Description

Just noticed that we seem to use an alphabetical sorting logic for the add context quick pick. I think we may want to change this because there's the risk that an extension contributes so many tools/resources that it will fill the entire quick pick (see screenshot below).

I worry this will cause recurring frustration to have to scroll past these options when you don't need them, plus be a slight hit on the discoverability of other options.

I propose we instead implement an opinionated "pinned list" of options, followed by a "most recently used" sort. For example, I think the following order would be nice:

  • "Codebase"
  • "Fetch Web Page"
  • "Find Test Files"
  • "Folder"
  • "Git Changes"
  • "Problem"
  • "Terminal Last Command"
  • "Terminal Selection"
  • "Test Failure"
  • ... Insert other tools/resources sorted by most recently used ...

This would ensure there's a nice set of common/helpful tools available right at the top and generally improve discoverability of the kinds of things you can attach as context.

Stretch goal

Even better than "most recently used" sort would be an AI-powered recommendation based on the the files you have open, the other context you have already attached, most recently used context/tools, etc, etc.

Screenshot

Image

Activity

  1. jrieken commented on Apr 15, 2025

    @jrieken
    Contributor
    • 💯

    I think it's also confusing that there are so many different icons, e.g there are no type-icons for things like tool or attachment. Like "Codebase", "fetch", and "Get Problems" are tools but "Problems..." is for adding a concrete problem as attachment.

    Image
  2. hawkticehurst commented on Apr 16, 2025

    @hawkticehurst
    MemberAuthor

    Oh interesting call out, do you have an idea of what other categories/types of things in this list there will be?

    So far, I gather:

    • Tool
    • Problem attachment
    • What else?
  3. hawkticehurst commented on Apr 16, 2025

    @hawkticehurst
    MemberAuthor

    Actually decided to break this question/convo out into a separate issue so let's continue over there: #246683

  4. jrieken commented on Apr 16, 2025

    @jrieken
    Contributor

    Zoomed out we have tools and attachments - the latter are real things like a file path, a diagnostic, an image etc and the former are references to tools (by their name)

  5. jrieken commented on Apr 16, 2025

    @jrieken
    Contributor

    Meeting notes. Make it similar to F1 > Run Task. E.g have recently used and pinned group, have a bucket per type

    ----------------------------------
    <recent_or_pinned_1>
    <recent_or_pinned_2>
    <recent_or_pinned_3>
    <recent_or_pinned_4>
    ----------------------------------
    tools
    files
    folders
    problems
    prompts
    
  6. roblourens commented on Apr 16, 2025

    @roblourens
    Member

    Sorry I missed the ux sync, I had to prep for the livestream. I would like to see open/recent files at the top too. Those should be commonly used and also it's a good hint that files do exist in that picker. I'm not sure about "pinning" context, I didn't know we had that feature. And why is it in Run Task but not the task quick access which is the only way I run individual tasks.

  7. hawkticehurst commented on Apr 16, 2025

    @hawkticehurst
    MemberAuthor

    No worries!

    Also I'm not even sure we have that feature either. It was suggestion/idea to help aid in the discoverability of the variety of tools/resources someone can attach as context. But I'm also happy to just stick with open/recent files at the top –– especially if "pinning" quick pick items isn't something that we normally do in VS Code.

  8. jrieken commented on Apr 17, 2025

    @jrieken
    Contributor

    Inching towards this... Slightly different than we had discussed - because of implementation reality and new insights

    • recent files are not atop - basically because that list can be very, very long and then pushing all other item out of view
    • when selecting "Tools..." you see them all in one list but sorted by Copilot, MCP (all), extensions (all), and builtin (2nd screen shot)
    • haven't done this yet but I think "Folders" should be "Files & Folders" for those that miss this already being a file picker
    Image Image
  9. hawkticehurst commented on Apr 17, 2025

    @hawkticehurst
    MemberAuthor

    Nice, this looks great! In general, I quite like that there are now only a handful of high level options that then let you dive deeper into what you want.

    Also +1 to all the decisions you listed/made.

    Final Q: Why is Screenshot Window in the top level list? This feels like it should go in Tools no?

  10. hawkticehurst commented on Apr 17, 2025

    @hawkticehurst
    MemberAuthor

    Oh actually one more Q:

    Is the recently opened section just the files you opened in the editor or does it also include context and tools that were recently recently attached/used?

    I would hope for the latter in this case.

  11. jrieken commented on Apr 22, 2025

    @jrieken
    Contributor

    Final Q: Why is Screenshot Window in the top level list? This feels like it should go in Tools no?

    Proper sorting wasn't implement yet ;-) It's not like this. I put "Open Editors" above "Files & Folders" (which used to be just Folders) but I am fine with any sorting.

    Image

    Is the recently opened section just the files you opened in the editor or does it also include context and tools that were recently recently attached/used?

    Today it is just open editors (or whatever cmd+p would show). I like the idea of also showing recently attached files but would need to investigate first how this would be done (since we mostly reuse cmd+p here)

  12. jrieken commented on Apr 25, 2025

    @jrieken
    Contributor

    closing and making sure we have this for testing

  13. added
    feature-request
    on Apr 25, 2025
  14. locked and limited conversation to collaborators on Jun 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

chatchat-inputfeature-requeston-testplanux

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions