@theia/plugin 1.27.0-next.30 → 1.27.0-next.35

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/plugin",
3
- "version": "1.27.0-next.30+b3adc5ae1b4",
3
+ "version": "1.27.0-next.35+7c0bc7b5d72",
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": "b3adc5ae1b46641c5429d171a03f6e9169307340"
35
+ "gitHead": "7c0bc7b5d7293db0a56c551a57577b9c84fc5b01"
36
36
  }
@@ -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
@@ -1215,6 +1215,22 @@ export module '@theia/plugin' {
1215
1215
  * @param revealType The scrolling strategy for revealing `range`.
1216
1216
  */
1217
1217
  revealRange(range: Range, revealType?: TextEditorRevealType): void;
1218
+
1219
+ /**
1220
+ * Shows this text editor. A [column](#ViewColumn) can be provided to control where the editor is being shown. Might change the [active editor](#window.activeTextEditor).
1221
+ *
1222
+ * @deprecated use [window.showTextDocument](#Window.showTextDocument) instead.
1223
+ *
1224
+ * @param column A [view column](#ViewColumn) in which this editor should be shown.
1225
+ */
1226
+ show(column?: ViewColumn): void;
1227
+
1228
+ /**
1229
+ * Hides this text editor.
1230
+ *
1231
+ * @deprecated use 'workbench.action.closeActiveEditor' command instead.
1232
+ */
1233
+ hide(): void;
1218
1234
  }
1219
1235
 
1220
1236
  /**
@@ -5349,7 +5365,7 @@ export module '@theia/plugin' {
5349
5365
  /**
5350
5366
  * A human-readable string describing this item. When `falsy`, it is derived from [resourceUri](#TreeItem.resourceUri).
5351
5367
  */
5352
- label?: string;
5368
+ label?: string | TreeItemLabel;
5353
5369
 
5354
5370
  /**
5355
5371
  * 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 +5441,7 @@ export module '@theia/plugin' {
5425
5441
  * @param label A human-readable string describing this item
5426
5442
  * @param collapsibleState [TreeItemCollapsibleState](#TreeItemCollapsibleState) of the tree item. Default is [TreeItemCollapsibleState.None](#TreeItemCollapsibleState.None)
5427
5443
  */
5428
- constructor(label: string, collapsibleState?: TreeItemCollapsibleState);
5444
+ constructor(label: string | TreeItemLabel, collapsibleState?: TreeItemCollapsibleState);
5429
5445
 
5430
5446
  /**
5431
5447
  * @param resourceUri The [uri](#Uri) of the resource representing this item.
@@ -5452,6 +5468,23 @@ export module '@theia/plugin' {
5452
5468
  Expanded = 2
5453
5469
  }
5454
5470
 
5471
+ /**
5472
+ * Label describing the {@link TreeItem Tree item}
5473
+ */
5474
+ export interface TreeItemLabel {
5475
+
5476
+ /**
5477
+ * A human-readable string describing the {@link TreeItem Tree item}.
5478
+ */
5479
+ label: string;
5480
+
5481
+ /**
5482
+ * Ranges in the label to highlight. A range is defined as a tuple of two numbers where the
5483
+ * first is the inclusive start index and the second the exclusive end index
5484
+ */
5485
+ highlights?: [number, number][];
5486
+ }
5487
+
5455
5488
  /**
5456
5489
  * Represents the configuration. It is a merged view of
5457
5490
  *