@theia/plugin 1.30.0-next.32 → 1.30.0-next.34
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.
- package/package.json +2 -2
- package/src/theia.d.ts +57 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin",
|
|
3
|
-
"version": "1.30.0-next.
|
|
3
|
+
"version": "1.30.0-next.34+9ab87f0d4",
|
|
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": "
|
|
35
|
+
"gitHead": "9ab87f0d411abe364fbe5d05929f621cdd12d25c"
|
|
36
36
|
}
|
package/src/theia.d.ts
CHANGED
|
@@ -2201,35 +2201,63 @@ export module '@theia/plugin' {
|
|
|
2201
2201
|
* Represents an item that can be selected from a list of items.
|
|
2202
2202
|
*/
|
|
2203
2203
|
export interface QuickPickItem {
|
|
2204
|
+
|
|
2205
|
+
/**
|
|
2206
|
+
* A human-readable string which is rendered prominent. Supports rendering of {@link ThemeIcon theme icons} via
|
|
2207
|
+
* the `$(<name>)`-syntax.
|
|
2208
|
+
*/
|
|
2209
|
+
label: string;
|
|
2210
|
+
|
|
2204
2211
|
/**
|
|
2205
2212
|
* 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,
|
|
2206
2213
|
* and all fields other than {@link QuickPickItem.label label} will be ignored.
|
|
2207
2214
|
*/
|
|
2208
2215
|
kind?: QuickPickItemKind;
|
|
2209
|
-
/**
|
|
2210
|
-
* The item label
|
|
2211
|
-
*/
|
|
2212
|
-
label: string;
|
|
2213
2216
|
|
|
2214
2217
|
/**
|
|
2215
|
-
*
|
|
2218
|
+
* A human-readable string which is rendered less prominent in the same line. Supports rendering of
|
|
2219
|
+
* {@link ThemeIcon theme icons} via the `$(<name>)`-syntax.
|
|
2220
|
+
*
|
|
2221
|
+
* Note: this property is ignored when {@link QuickPickItem.kind kind} is set to {@link QuickPickItemKind.Separator}
|
|
2216
2222
|
*/
|
|
2217
2223
|
description?: string;
|
|
2218
2224
|
|
|
2219
2225
|
/**
|
|
2220
|
-
*
|
|
2226
|
+
* A human-readable string which is rendered less prominent in a separate line. Supports rendering of
|
|
2227
|
+
* {@link ThemeIcon theme icons} via the `$(<name>)`-syntax.
|
|
2228
|
+
*
|
|
2229
|
+
* Note: this property is ignored when {@link QuickPickItem.kind kind} is set to {@link QuickPickItemKind.Separator}
|
|
2221
2230
|
*/
|
|
2222
2231
|
detail?: string;
|
|
2223
2232
|
|
|
2224
2233
|
/**
|
|
2225
|
-
*
|
|
2226
|
-
*
|
|
2234
|
+
* Optional flag indicating if this item is picked initially. This is only honored when using
|
|
2235
|
+
* the {@link window.showQuickPick()} API. To do the same thing with the {@link window.createQuickPick()} API,
|
|
2236
|
+
* simply set the {@link QuickPick.selectedItems} to the items you want picked initially.
|
|
2237
|
+
* (*Note:* This is only honored when the picker allows multiple selections.)
|
|
2238
|
+
*
|
|
2239
|
+
* @see {@link QuickPickOptions.canPickMany}
|
|
2240
|
+
*
|
|
2241
|
+
* Note: this property is ignored when {@link QuickPickItem.kind kind} is set to {@link QuickPickItemKind.Separator}
|
|
2227
2242
|
*/
|
|
2228
2243
|
picked?: boolean;
|
|
2244
|
+
|
|
2229
2245
|
/**
|
|
2230
2246
|
* Always show this item.
|
|
2247
|
+
*
|
|
2248
|
+
* Note: this property is ignored when {@link QuickPickItem.kind kind} is set to {@link QuickPickItemKind.Separator}
|
|
2231
2249
|
*/
|
|
2232
2250
|
alwaysShow?: boolean;
|
|
2251
|
+
|
|
2252
|
+
/**
|
|
2253
|
+
* Optional buttons that will be rendered on this particular item. These buttons will trigger
|
|
2254
|
+
* an {@link QuickPickItemButtonEvent} when clicked. Buttons are only rendered when using a quickpick
|
|
2255
|
+
* created by the {@link window.createQuickPick()} API. Buttons are not rendered when using
|
|
2256
|
+
* the {@link window.showQuickPick()} API.
|
|
2257
|
+
*
|
|
2258
|
+
* Note: this property is ignored when {@link QuickPickItem.kind kind} is set to {@link QuickPickItemKind.Separator}
|
|
2259
|
+
*/
|
|
2260
|
+
buttons?: readonly QuickInputButton[];
|
|
2233
2261
|
}
|
|
2234
2262
|
|
|
2235
2263
|
/**
|
|
@@ -2282,6 +2310,12 @@ export module '@theia/plugin' {
|
|
|
2282
2310
|
*/
|
|
2283
2311
|
readonly onDidTriggerButton: Event<QuickInputButton>;
|
|
2284
2312
|
|
|
2313
|
+
/**
|
|
2314
|
+
* An event signaling when a button in a particular {@link QuickPickItem} was triggered.
|
|
2315
|
+
* This event does not fire for buttons in the title bar.
|
|
2316
|
+
*/
|
|
2317
|
+
readonly onDidTriggerItemButton: Event<QuickPickItemButtonEvent<T>>;
|
|
2318
|
+
|
|
2285
2319
|
/**
|
|
2286
2320
|
* Items to pick from.
|
|
2287
2321
|
*/
|
|
@@ -5118,6 +5152,21 @@ export module '@theia/plugin' {
|
|
|
5118
5152
|
private constructor();
|
|
5119
5153
|
}
|
|
5120
5154
|
|
|
5155
|
+
/**
|
|
5156
|
+
* An event signaling when a button in a particular {@link QuickPickItem} was triggered.
|
|
5157
|
+
* This event does not fire for buttons in the title bar.
|
|
5158
|
+
*/
|
|
5159
|
+
export interface QuickPickItemButtonEvent<T extends QuickPickItem> {
|
|
5160
|
+
/**
|
|
5161
|
+
* The button that was clicked.
|
|
5162
|
+
*/
|
|
5163
|
+
readonly button: QuickInputButton;
|
|
5164
|
+
/**
|
|
5165
|
+
* The item that the button belongs to.
|
|
5166
|
+
*/
|
|
5167
|
+
readonly item: T;
|
|
5168
|
+
}
|
|
5169
|
+
|
|
5121
5170
|
/**
|
|
5122
5171
|
* A concrete {@link QuickInput QuickInput} to let the user input a text value.
|
|
5123
5172
|
*
|