An source control resource state represents the state of an underlying workspace resource within a certain {@link SourceControlResourceGroup source control group}.
An source control resource state represents the state of an underlying workspace
resource within a certain {@link SourceControlResourceGroup source control group}.(command source-control-resource-state)The {@link Command } which should be run when the resource state is open in the Source Control viewlet.
Returns: Command | undefined
The {@link Command } which should be run when the resource
state is open in the Source Control viewlet.
**Returns:** `Command | undefined`(context-value source-control-resource-state)Context value of the resource state. This can be used to contribute resource specific actions.
For example, if a resource is given a context value as diffable. When contributing actions to scm/resourceState/context
using menus extension point, you can specify context value for key scmResourceState in when expressions, like scmResourceState == diffable.
"contributes": {
"menus": {
"scm/resourceState/context": [
{
"command": "extension.diff",
"when": "scmResourceState == diffable"
}
]
}
}
This will show action extension.diff only for resources with contextValue is diffable.
Returns: string | undefined
Context value of the resource state. This can be used to contribute resource specific actions.
For example, if a resource is given a context value as `diffable`. When contributing actions to `scm/resourceState/context`
using `menus` extension point, you can specify context value for key `scmResourceState` in `when` expressions, like `scmResourceState == diffable`.
```json
"contributes": {
"menus": {
"scm/resourceState/context": [
{
"command": "extension.diff",
"when": "scmResourceState == diffable"
}
]
}
}
```
This will show action `extension.diff` only for resources with `contextValue` is `diffable`.
**Returns:** `string | undefined`(decorations source-control-resource-state)The {@link SourceControlResourceDecorations decorations} for this source control resource state.
Returns: SourceControlResourceDecorations | undefined
The {@link SourceControlResourceDecorations decorations} for this source control
resource state.
**Returns:** `SourceControlResourceDecorations | undefined`(resource-uri source-control-resource-state)The {@link Uri } of the underlying resource inside the workspace.
Returns: Uri
The {@link Uri } of the underlying resource inside the workspace.
**Returns:** `Uri`cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |