@theia/plugin 1.35.0 → 1.36.0-next.22

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.35.0",
3
+ "version": "1.36.0-next.22+b9a1c5c2a",
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": "5b1e4f9b913cf1b0d27acd4bc435cb2570f164d8"
35
+ "gitHead": "b9a1c5c2a163369f64a21854f23df4fe6e416ea8"
36
36
  }
@@ -608,6 +608,40 @@ export module '@theia/plugin' {
608
608
  export function registerTimelineProvider(scheme: string | string[], provider: TimelineProvider): Disposable;
609
609
  }
610
610
 
611
+ // Copied from https://github.com/microsoft/vscode/blob/ad4470522ecd858cfaf53a87c2702d7a40946ba1/src/vscode-dts/vscode.proposed.extensionsAny.d.ts
612
+ // https://github.com/microsoft/vscode/issues/145307
613
+
614
+ export interface Extension<T> {
615
+
616
+ /**
617
+ * `true` when the extension is associated to another extension host.
618
+ *
619
+ * *Note* that an extension from another extension host cannot export
620
+ * API, e.g {@link Extension.exports its exports} are always `undefined`.
621
+ */
622
+ readonly isFromDifferentExtensionHost: boolean;
623
+ }
624
+
625
+ export namespace extensions {
626
+
627
+ /**
628
+ * Get an extension by its full identifier in the form of: `publisher.name`.
629
+ *
630
+ * @param extensionId An extension identifier.
631
+ * @param includeDifferentExtensionHosts Include extensions from different extension host
632
+ * @return An extension or `undefined`.
633
+ */
634
+ export function getExtension<T = any>(extensionId: string, includeDifferentExtensionHosts: boolean): Extension<T> | undefined;
635
+
636
+ /**
637
+ * All extensions across all extension hosts.
638
+ *
639
+ * @see {@link Extension.isFromDifferentExtensionHost}
640
+ */
641
+ export const allAcrossExtensionHosts: readonly Extension<void>[];
642
+
643
+ }
644
+
611
645
  // #endregion
612
646
  }
613
647