Skip to content

SCM - Provide multiple ScmResourceGroup in menu commands #92337

@llgcode

Description

@llgcode

Hi,
When implementing a menu on a ResourceGroup in SourceControl view. There is always only one group in command args even if the user select multiple ResourceGroup and perform a common menu action there.

// groups length is always 1 even when multiple group selected
commands.registerCommand("commandId", (...groups: SourceControlResourceGroup[]) => {

The expected behavior is to have the list of SourceControlResourceGroup in command args like when selecting multiple SourceControlResource and execute a common menu action.

// resources length is greater than 1 when there is multiple resources selected in SourceControl View
commands.registerCommand("commandId", (...resources: SourceControlResourceState[]) => {

Regards.

  • VSCode Version: 1.42.1
  • OS Version: win10

Metadata

Metadata

Assignees

Labels

author-verification-requestedIssues potentially verifiable by issue authorfeature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code InsidersscmGeneral SCM compound issuesverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions