@theia/plugin 1.24.0-next.46 → 1.24.0-next.49

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 +10 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/plugin",
3
- "version": "1.24.0-next.46+173e8b197a2",
3
+ "version": "1.24.0-next.49+7a44ee6fef5",
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": "173e8b197a2a1bbe7f95f49509da7e53659de0c7"
35
+ "gitHead": "7a44ee6fef59d0de9bc677eb68fb68835e554455"
36
36
  }
package/src/theia.d.ts CHANGED
@@ -2078,8 +2078,8 @@ export module '@theia/plugin' {
2078
2078
  /**
2079
2079
  * Represents an item that can be selected from a list of items.
2080
2080
  */
2081
- export interface QuickPickItem {
2082
- type?: 'item' | 'separator';
2081
+ export interface QuickPickItemValue {
2082
+ type?: 'item';
2083
2083
  /**
2084
2084
  * The item label
2085
2085
  */
@@ -2106,6 +2106,13 @@ export module '@theia/plugin' {
2106
2106
  alwaysShow?: boolean;
2107
2107
  }
2108
2108
 
2109
+ export interface QuickPickSeparator {
2110
+ type: 'separator';
2111
+ label?: string;
2112
+ }
2113
+
2114
+ export type QuickPickItem = QuickPickSeparator | QuickPickItemValue;
2115
+
2109
2116
  /**
2110
2117
  * A concrete [QuickInput](#QuickInput) to let the user pick an item from a
2111
2118
  * list of items of type T. The items can be filtered through a filter text field and
@@ -6207,7 +6214,7 @@ export module '@theia/plugin' {
6207
6214
  * @return true if the operation was successfully started and false otherwise if arguments were used that would result
6208
6215
  * in invalid workspace folder state (e.g. 2 folders with the same URI).
6209
6216
  */
6210
- export function updateWorkspaceFolders(start: number, deleteCount: number | undefined | null, ...workspaceFoldersToAdd: { uri: Uri, name?: string }[]): boolean;
6217
+ export function updateWorkspaceFolders(start: number, deleteCount: number | undefined | null, ...workspaceFoldersToAdd: { readonly uri: Uri, readonly name?: string }[]): boolean;
6211
6218
 
6212
6219
  /**
6213
6220
  * ~~Register a task provider.~~