Skip to content

Change the query compare command's text based on how many items are selected #471

Open
@aeisenberg

Description

@aeisenberg

The workflow for comparing queries is different if you have one query selected or two. When one query is selected, and a user invokes the compare command, an options box opens where the second query can be selected. When two queries are selected, the comparison happens immediately.

We should either:

  1. use two commands for these two workflows and only display one or the other based on selection count. This is currently blocked by Enablement using listDoubleSelection and listMultiSelection not working in contributed view microsoft/vscode#99767
  2. Change the command title text based on the number of items selected. Not sure exactly how best to do this.

When one item is selected, use Compare with... and when two are selected, Compare Selected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Complexity: MediumRequires a moderate level of detail in design or review.VSCodeenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions