@theia/plugin 1.60.0-next.43 → 1.60.0-next.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/theia.d.ts +20 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/plugin",
3
- "version": "1.60.0-next.43+2a13720d2",
3
+ "version": "1.60.0-next.47+9332521b9",
4
4
  "description": "Theia - Plugin API",
5
5
  "types": "./src/theia.d.ts",
6
6
  "publishConfig": {
@@ -32,5 +32,5 @@
32
32
  "nyc": {
33
33
  "extends": "../../configs/nyc.json"
34
34
  },
35
- "gitHead": "2a13720d2d41d8ae6ee4e34cd2dee1c656a18018"
35
+ "gitHead": "9332521b9aa74bf534d45968905d37e30a13c3b5"
36
36
  }
package/src/theia.d.ts CHANGED
@@ -12245,6 +12245,26 @@ export module '@theia/plugin' {
12245
12245
  */
12246
12246
  hideWhenEmpty?: boolean;
12247
12247
 
12248
+ /**
12249
+ * Context value of the resource group. This can be used to contribute resource group specific actions.
12250
+ * For example, if a resource group is given a context value of `exportable`, when contributing actions to `scm/resourceGroup/context`
12251
+ * using `menus` extension point, you can specify context value for key `scmResourceGroupState` in `when` expressions, like `scmResourceGroupState == exportable`.
12252
+ * ```json
12253
+ * "contributes": {
12254
+ * "menus": {
12255
+ * "scm/resourceGroup/context": [
12256
+ * {
12257
+ * "command": "extension.export",
12258
+ * "when": "scmResourceGroupState == exportable"
12259
+ * }
12260
+ * ]
12261
+ * }
12262
+ * }
12263
+ * ```
12264
+ * This will show action `extension.export` only for resource groups with `contextValue` equal to `exportable`.
12265
+ */
12266
+ contextValue?: string;
12267
+
12248
12268
  /**
12249
12269
  * This group's collection of
12250
12270
  * {@link SourceControlResourceState source control resource states}.