@theia/plugin 1.34.0-next.39 → 1.34.0

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 +3 -3
  2. package/src/theia.d.ts +12 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/plugin",
3
- "version": "1.34.0-next.39+34c64e81f",
3
+ "version": "1.34.0",
4
4
  "description": "Theia - Plugin API",
5
5
  "types": "./src/theia.d.ts",
6
6
  "publishConfig": {
@@ -27,10 +27,10 @@
27
27
  "watch": "theiaext watch"
28
28
  },
29
29
  "devDependencies": {
30
- "@theia/ext-scripts": "1.33.0"
30
+ "@theia/ext-scripts": "1.34.0"
31
31
  },
32
32
  "nyc": {
33
33
  "extends": "../../configs/nyc.json"
34
34
  },
35
- "gitHead": "34c64e81f040ba2956105c73591669fa7d61db9b"
35
+ "gitHead": "a8c403b103829a1b8b092ce741ef3826804f773b"
36
36
  }
package/src/theia.d.ts CHANGED
@@ -3900,9 +3900,11 @@ export module '@theia/plugin' {
3900
3900
  /**
3901
3901
  * Controls whether command uris are enabled in webview content or not.
3902
3902
  *
3903
- * Defaults to false.
3903
+ * Defaults to `false` (command uris are disabled).
3904
+ *
3905
+ * If you pass in an array, only the commands in the array are allowed.
3904
3906
  */
3905
- readonly enableCommandUris?: boolean;
3907
+ readonly enableCommandUris?: boolean | readonly string[];
3906
3908
 
3907
3909
  /**
3908
3910
  * Root paths from which the webview can load local (filesystem) resources using the `theia-resource:` scheme.
@@ -5055,7 +5057,7 @@ export module '@theia/plugin' {
5055
5057
  *
5056
5058
  * @return New webview panel.
5057
5059
  */
5058
- export function createWebviewPanel(viewType: string, title: string, showOptions: ViewColumn | WebviewPanelShowOptions,
5060
+ export function createWebviewPanel(viewType: string, title: string, showOptions: ViewColumn | { readonly viewColumn: ViewColumn; readonly preserveFocus?: boolean },
5059
5061
  options?: WebviewPanelOptions & WebviewOptions): WebviewPanel;
5060
5062
 
5061
5063
  /**
@@ -5670,6 +5672,12 @@ export module '@theia/plugin' {
5670
5672
  * An optional interface to implement drag and drop in the tree view.
5671
5673
  */
5672
5674
  dragAndDropController?: TreeDragAndDropController<T>;
5675
+ /**
5676
+ * Whether the tree supports multi-select. When the tree supports multi-select and a command is executed from the tree,
5677
+ * the first argument to the command is the tree item that the command was executed on and the second argument is an
5678
+ * array containing all selected tree items.
5679
+ */
5680
+ canSelectMany?: boolean;
5673
5681
  }
5674
5682
 
5675
5683
  /**
@@ -7763,7 +7771,7 @@ export module '@theia/plugin' {
7763
7771
  * The `activeSignatureHelp` has its [`SignatureHelp.activeSignature`] field updated based on
7764
7772
  * the user arrowing through available signatures.
7765
7773
  */
7766
- readonly activeSignatureHelp?: SignatureHelp;
7774
+ readonly activeSignatureHelp: SignatureHelp | undefined;
7767
7775
  }
7768
7776
 
7769
7777
  /**