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"
}
]
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"
}
]