@theia/plugin 1.27.0-next.30 → 1.27.0-next.31
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-proposed.d.ts +0 -35
- package/src/theia.d.ts +19 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin",
|
|
3
|
-
"version": "1.27.0-next.
|
|
3
|
+
"version": "1.27.0-next.31+369bf425441",
|
|
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": "369bf42544143d8f39043a1690071e058cdac770"
|
|
36
36
|
}
|
package/src/theia-proposed.d.ts
CHANGED
|
@@ -321,41 +321,6 @@ export module '@theia/plugin' {
|
|
|
321
321
|
|
|
322
322
|
// #endregion
|
|
323
323
|
|
|
324
|
-
// #region Tree View
|
|
325
|
-
// copied from https://github.com/microsoft/vscode/blob/3ea5c9ddbebd8ec68e3b821f9c39c3ec785fde97/src/vs/vscode.proposed.d.ts#L1447-L1476
|
|
326
|
-
/**
|
|
327
|
-
* Label describing the [Tree item](#TreeItem)
|
|
328
|
-
*/
|
|
329
|
-
export interface TreeItemLabel {
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* A human-readable string describing the [Tree item](#TreeItem).
|
|
333
|
-
*/
|
|
334
|
-
label: string;
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* Ranges in the label to highlight. A range is defined as a tuple of two number where the
|
|
338
|
-
* first is the inclusive start index and the second the exclusive end index
|
|
339
|
-
*/
|
|
340
|
-
// TODO highlights?: [number, number][];
|
|
341
|
-
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
export class TreeItem2 extends TreeItem {
|
|
345
|
-
/**
|
|
346
|
-
* Label describing this item. When `falsy`, it is derived from [resourceUri](#TreeItem.resourceUri).
|
|
347
|
-
*/
|
|
348
|
-
label?: string | TreeItemLabel | /* for compilation */ any;
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* @param label Label describing this item
|
|
352
|
-
* @param collapsibleState [TreeItemCollapsibleState](#TreeItemCollapsibleState) of the tree item.
|
|
353
|
-
* Default is [TreeItemCollapsibleState.None](#TreeItemCollapsibleState.None)
|
|
354
|
-
*/
|
|
355
|
-
constructor(label: TreeItemLabel, collapsibleState?: TreeItemCollapsibleState);
|
|
356
|
-
}
|
|
357
|
-
// #endregion
|
|
358
|
-
|
|
359
324
|
// #region search in workspace
|
|
360
325
|
/**
|
|
361
326
|
* The parameters of a query for text search.
|
package/src/theia.d.ts
CHANGED
|
@@ -5349,7 +5349,7 @@ export module '@theia/plugin' {
|
|
|
5349
5349
|
/**
|
|
5350
5350
|
* A human-readable string describing this item. When `falsy`, it is derived from [resourceUri](#TreeItem.resourceUri).
|
|
5351
5351
|
*/
|
|
5352
|
-
label?: string;
|
|
5352
|
+
label?: string | TreeItemLabel;
|
|
5353
5353
|
|
|
5354
5354
|
/**
|
|
5355
5355
|
* Optional id for the tree item that has to be unique across tree. The id is used to preserve the selection and expansion state of the tree item.
|
|
@@ -5425,7 +5425,7 @@ export module '@theia/plugin' {
|
|
|
5425
5425
|
* @param label A human-readable string describing this item
|
|
5426
5426
|
* @param collapsibleState [TreeItemCollapsibleState](#TreeItemCollapsibleState) of the tree item. Default is [TreeItemCollapsibleState.None](#TreeItemCollapsibleState.None)
|
|
5427
5427
|
*/
|
|
5428
|
-
constructor(label: string, collapsibleState?: TreeItemCollapsibleState);
|
|
5428
|
+
constructor(label: string | TreeItemLabel, collapsibleState?: TreeItemCollapsibleState);
|
|
5429
5429
|
|
|
5430
5430
|
/**
|
|
5431
5431
|
* @param resourceUri The [uri](#Uri) of the resource representing this item.
|
|
@@ -5452,6 +5452,23 @@ export module '@theia/plugin' {
|
|
|
5452
5452
|
Expanded = 2
|
|
5453
5453
|
}
|
|
5454
5454
|
|
|
5455
|
+
/**
|
|
5456
|
+
* Label describing the {@link TreeItem Tree item}
|
|
5457
|
+
*/
|
|
5458
|
+
export interface TreeItemLabel {
|
|
5459
|
+
|
|
5460
|
+
/**
|
|
5461
|
+
* A human-readable string describing the {@link TreeItem Tree item}.
|
|
5462
|
+
*/
|
|
5463
|
+
label: string;
|
|
5464
|
+
|
|
5465
|
+
/**
|
|
5466
|
+
* Ranges in the label to highlight. A range is defined as a tuple of two numbers where the
|
|
5467
|
+
* first is the inclusive start index and the second the exclusive end index
|
|
5468
|
+
*/
|
|
5469
|
+
highlights?: [number, number][];
|
|
5470
|
+
}
|
|
5471
|
+
|
|
5455
5472
|
/**
|
|
5456
5473
|
* Represents the configuration. It is a merged view of
|
|
5457
5474
|
*
|