@theia/plugin 1.25.0-next.5 → 1.25.0-next.50

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.25.0-next.5+b8fd6663938",
3
+ "version": "1.25.0-next.50+3dce8e68986",
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": "b8fd666393866d1bd907a8035435aa74ecb7d506"
35
+ "gitHead": "3dce8e68986bd2ff36d52123d49e88195a6e9e59"
36
36
  }
@@ -642,6 +642,11 @@ export module '@theia/plugin' {
642
642
  */
643
643
  contextValue?: string;
644
644
 
645
+ /**
646
+ * Accessibility information used when screen reader interacts with this timeline item.
647
+ */
648
+ accessibilityInformation?: AccessibilityInformation;
649
+
645
650
  /**
646
651
  * @param label A human-readable string describing the timeline item
647
652
  * @param timestamp A timestamp (in milliseconds since 1 January 1970 00:00:00) for when the timeline item occurred
package/src/theia.d.ts CHANGED
@@ -2404,6 +2404,24 @@ export module '@theia/plugin' {
2404
2404
  export function getCommands(filterInternal?: boolean): PromiseLike<string[]>;
2405
2405
  }
2406
2406
 
2407
+ /**
2408
+ * Accessibility information which controls screen reader behavior.
2409
+ */
2410
+ export interface AccessibilityInformation {
2411
+ /**
2412
+ * Label to be read out by a screen reader once the item has focus.
2413
+ */
2414
+ readonly label: string;
2415
+
2416
+ /**
2417
+ * Role of the widget which defines how a screen reader interacts with it.
2418
+ * The role should be set in special cases when for example a tree-like element behaves like a checkbox.
2419
+ * If role is not specified the editor will pick the appropriate role automatically.
2420
+ * More about aria roles can be found here https://w3c.github.io/aria/#widget_roles
2421
+ */
2422
+ readonly role?: string;
2423
+ }
2424
+
2407
2425
  /**
2408
2426
  * Represents an action that is shown with a message.
2409
2427
  */
@@ -2463,6 +2481,14 @@ export module '@theia/plugin' {
2463
2481
  */
2464
2482
  export interface StatusBarItem {
2465
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
+
2466
2492
  /**
2467
2493
  * The alignment of this item.
2468
2494
  */
@@ -2474,6 +2500,13 @@ export module '@theia/plugin' {
2474
2500
  */
2475
2501
  readonly priority: number;
2476
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
+
2477
2510
  /**
2478
2511
  * The text to show for the entry. To set a text with icon use the following pattern in text string:
2479
2512
  * $(fontawesomeClassName)
@@ -2490,11 +2523,30 @@ export module '@theia/plugin' {
2490
2523
  */
2491
2524
  color: string | ThemeColor | undefined;
2492
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
+
2493
2540
  /**
2494
2541
  * The identifier of a command to run on click.
2495
2542
  */
2496
2543
  command: string | Command | undefined;
2497
2544
 
2545
+ /**
2546
+ * Accessibility information used when a screen reader interacts with this StatusBar item.
2547
+ */
2548
+ accessibilityInformation: AccessibilityInformation | undefined;
2549
+
2498
2550
  /**
2499
2551
  * Shows the entry in the status bar.
2500
2552
  */
@@ -5255,6 +5307,13 @@ export module '@theia/plugin' {
5255
5307
  */
5256
5308
  contextValue?: string;
5257
5309
 
5310
+ /**
5311
+ * Accessibility information used when screen reader interacts with this tree item.
5312
+ * Generally, a TreeItem has no need to set the `role` of the accessibilityInformation;
5313
+ * however, there are cases where a TreeItem is not displayed in a tree-like way where setting the `role` may make sense.
5314
+ */
5315
+ accessibilityInformation?: AccessibilityInformation;
5316
+
5258
5317
  /**
5259
5318
  * @param label A human-readable string describing this item
5260
5319
  * @param collapsibleState [TreeItemCollapsibleState](#TreeItemCollapsibleState) of the tree item. Default is [TreeItemCollapsibleState.None](#TreeItemCollapsibleState.None)
@@ -6849,8 +6908,7 @@ export module '@theia/plugin' {
6849
6908
  * thenable.
6850
6909
  *
6851
6910
  */
6852
- export type ProviderResult<T> = T | undefined | PromiseLike<T | undefined>;
6853
-
6911
+ export type ProviderResult<T> = T | undefined | null | Thenable<T | undefined | null>;
6854
6912
  /**
6855
6913
  * A symbol kind.
6856
6914
  */
@@ -10883,6 +10941,11 @@ export module '@theia/plugin' {
10883
10941
  * Once disposed, this comment thread will be removed from visible editors and Comment Panel when appropriate.
10884
10942
  */
10885
10943
  dispose(): void;
10944
+
10945
+ /**
10946
+ * Whether the thread supports reply. Defaults to true.
10947
+ */
10948
+ canReply: boolean;
10886
10949
  }
10887
10950
 
10888
10951
  /**