@theia/plugin 1.25.0-next.17 → 1.25.0-next.20

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 +29 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/plugin",
3
- "version": "1.25.0-next.17+e6b57ba4eda",
3
+ "version": "1.25.0-next.20+c78d302e4cd",
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": "e6b57ba4edabf797f3b4e67bc2968cdb8cc25b1e"
35
+ "gitHead": "c78d302e4cddfec1acbe60933fc3ac3ec6f0932d"
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
  */