@theia/plugin 1.24.0-next.58 → 1.24.0-next.60

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 +39 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/plugin",
3
- "version": "1.24.0-next.58+f044a0a081d",
3
+ "version": "1.24.0-next.60+06aa90cdf45",
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": "f044a0a081dd3aad4feec7d6b2c1086723e3a900"
35
+ "gitHead": "06aa90cdf455319ac6e24b8bcb7f8a731898b6b4"
36
36
  }
package/src/theia.d.ts CHANGED
@@ -2078,8 +2078,12 @@ 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 QuickPickItemValue {
2082
- type?: 'item';
2081
+ export interface QuickPickItem {
2082
+ /**
2083
+ * Defaults to {@link QuickPickItemKind.Default}. If set to {@link QUickPickItemKind.Separator}, the item will not be displayed as a row but only as a separator,
2084
+ * and all fields other than {@link QuickPickItem.label label} will be ignored.
2085
+ */
2086
+ kind?: QuickPickItemKind;
2083
2087
  /**
2084
2088
  * The item label
2085
2089
  */
@@ -2106,13 +2110,14 @@ export module '@theia/plugin' {
2106
2110
  alwaysShow?: boolean;
2107
2111
  }
2108
2112
 
2109
- export interface QuickPickSeparator {
2110
- type: 'separator';
2111
- label?: string;
2113
+ /**
2114
+ * The type of a {@link QuickPickItem quitk pick item}. If `Separator` is set, all fields other than {@link QuickPickItem.label label} will be ignored.
2115
+ */
2116
+ export enum QuickPickItemKind {
2117
+ Separator = -1,
2118
+ Default = 0,
2112
2119
  }
2113
2120
 
2114
- export type QuickPickItem = QuickPickSeparator | QuickPickItemValue;
2115
-
2116
2121
  /**
2117
2122
  * A concrete [QuickInput](#QuickInput) to let the user pick an item from a
2118
2123
  * list of items of type T. The items can be filtered through a filter text field and
@@ -7333,6 +7338,31 @@ export module '@theia/plugin' {
7333
7338
  Deprecated = 1
7334
7339
  }
7335
7340
 
7341
+ /**
7342
+ * A structured label for a {@link CompletionItem completion item}.
7343
+ */
7344
+ export interface CompletionItemLabel {
7345
+
7346
+ /**
7347
+ * The label of this completion item.
7348
+ *
7349
+ * By default this is also the text that is inserted when this completion is selected.
7350
+ */
7351
+ label: string;
7352
+
7353
+ /**
7354
+ * An optional string which is rendered less prominently directly after {@link CompletionItemLabel.label label},
7355
+ * without any spacing. Should be used for function signatures or type annotations.
7356
+ */
7357
+ detail?: string;
7358
+
7359
+ /**
7360
+ * An optional string which is rendered less prominently after {@link CompletionItemLabel.detail}. Should be used
7361
+ * for fully qualified names or file path.
7362
+ */
7363
+ description?: string;
7364
+ }
7365
+
7336
7366
  /**
7337
7367
  * A completion item represents a text snippet that is proposed to complete text that is being typed.
7338
7368
  *
@@ -7355,7 +7385,7 @@ export module '@theia/plugin' {
7355
7385
  * this is also the text that is inserted when selecting
7356
7386
  * this completion.
7357
7387
  */
7358
- label: string;
7388
+ label: string | CompletionItemLabel;
7359
7389
 
7360
7390
  /**
7361
7391
  * The kind of this completion item. Based on the kind
@@ -7474,7 +7504,7 @@ export module '@theia/plugin' {
7474
7504
  * @param label The label of the completion.
7475
7505
  * @param kind The [kind](#CompletionItemKind) of the completion.
7476
7506
  */
7477
- constructor(label: string, kind?: CompletionItemKind);
7507
+ constructor(label: string | CompletionItemLabel, kind?: CompletionItemKind);
7478
7508
  }
7479
7509
 
7480
7510
  /**