@theia/plugin 1.25.0-next.7 → 1.25.0

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 +3 -3
  2. package/src/theia.d.ts +35 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/plugin",
3
- "version": "1.25.0-next.7+64d193dcddc",
3
+ "version": "1.25.0",
4
4
  "description": "Theia - Plugin API",
5
5
  "types": "./src/theia.d.ts",
6
6
  "publishConfig": {
@@ -27,10 +27,10 @@
27
27
  "watch": "theiaext watch"
28
28
  },
29
29
  "devDependencies": {
30
- "@theia/ext-scripts": "1.24.0"
30
+ "@theia/ext-scripts": "1.25.0"
31
31
  },
32
32
  "nyc": {
33
33
  "extends": "../../configs/nyc.json"
34
34
  },
35
- "gitHead": "64d193dcddc57dc40b32cc9976c5a4a68ab023ed"
35
+ "gitHead": "937a6bebf37de6e379445283cfb0fb595428ba35"
36
36
  }
package/src/theia.d.ts CHANGED
@@ -2481,6 +2481,14 @@ export module '@theia/plugin' {
2481
2481
  */
2482
2482
  export interface StatusBarItem {
2483
2483
 
2484
+ /**
2485
+ * The identifier of this item.
2486
+ *
2487
+ * *Note*: if no identifier was provided by the {@linkcode window.createStatusBarItem}
2488
+ * method, the identifier will match the {@link Extension.id extension identifier}.
2489
+ */
2490
+ readonly id: string;
2491
+
2484
2492
  /**
2485
2493
  * The alignment of this item.
2486
2494
  */
@@ -2492,6 +2500,13 @@ export module '@theia/plugin' {
2492
2500
  */
2493
2501
  readonly priority: number;
2494
2502
 
2503
+ /**
2504
+ * The name of the entry, like 'Python Language Indicator', 'Git Status' etc.
2505
+ * Try to keep the length of the name short, yet descriptive enough that
2506
+ * users can understand what the status bar item is about.
2507
+ */
2508
+ name: string | undefined;
2509
+
2495
2510
  /**
2496
2511
  * The text to show for the entry. To set a text with icon use the following pattern in text string:
2497
2512
  * $(fontawesomeClassName)
@@ -2508,6 +2523,20 @@ export module '@theia/plugin' {
2508
2523
  */
2509
2524
  color: string | ThemeColor | undefined;
2510
2525
 
2526
+ /**
2527
+ * The background color for this entry.
2528
+ *
2529
+ * *Note*: only the following colors are supported:
2530
+ * * `new ThemeColor('statusBarItem.errorBackground')`
2531
+ * * `new ThemeColor('statusBarItem.warningBackground')`
2532
+ *
2533
+ * More background colors may be supported in the future.
2534
+ *
2535
+ * *Note*: when a background color is set, the statusbar may override
2536
+ * the `color` choice to ensure the entry is readable in all themes.
2537
+ */
2538
+ backgroundColor: ThemeColor | undefined;
2539
+
2511
2540
  /**
2512
2541
  * The identifier of a command to run on click.
2513
2542
  */
@@ -6879,8 +6908,7 @@ export module '@theia/plugin' {
6879
6908
  * thenable.
6880
6909
  *
6881
6910
  */
6882
- export type ProviderResult<T> = T | undefined | PromiseLike<T | undefined>;
6883
-
6911
+ export type ProviderResult<T> = T | undefined | null | Thenable<T | undefined | null>;
6884
6912
  /**
6885
6913
  * A symbol kind.
6886
6914
  */
@@ -10913,6 +10941,11 @@ export module '@theia/plugin' {
10913
10941
  * Once disposed, this comment thread will be removed from visible editors and Comment Panel when appropriate.
10914
10942
  */
10915
10943
  dispose(): void;
10944
+
10945
+ /**
10946
+ * Whether the thread supports reply. Defaults to true.
10947
+ */
10948
+ canReply: boolean;
10916
10949
  }
10917
10950
 
10918
10951
  /**