Skip to content

Implement different sorting logic for add context quick pick #246541

@hawkticehurst

Description

@hawkticehurst

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

Metadata

Metadata

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions