Skip to content

Context for "scm/resourceState/context" when clauses. #27946

@laramiel

Description

@laramiel

I'm trying to author an SCM extension where the context menus depend on the SourceControlResourceGroup.

The problem is that the when clause documentation for triggering is hard to find / unavailable.

I understand that I can set my own context values, at least on the API level; how do I set them on the resourceState level?

"scm/resourceState/context" : [
{
"when": "scmProvider == mine && scmResourceState == something"
}
]

Metadata

Metadata

Assignees

Labels

*questionIssue represents a question, should be posted to StackOverflow (VS Code)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions