@theia/plugin 1.23.0-next.0 → 1.23.0-next.4

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 +25 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/plugin",
3
- "version": "1.23.0-next.0+edeee9cfae1",
3
+ "version": "1.23.0-next.4+d5bb4e83123",
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": "edeee9cfae17e46a0c244b5e7b63de479e3d8031"
35
+ "gitHead": "d5bb4e83123d30894871eb96cb6b11ce70aeac45"
36
36
  }
package/src/theia.d.ts CHANGED
@@ -2745,6 +2745,7 @@ export module '@theia/plugin' {
2745
2745
 
2746
2746
  /**
2747
2747
  * Options a virtual process terminal.
2748
+ * @deprecated since 1.23.0 - Use [ExtensionTerminalOptions](#ExtensionTerminalOptions) instead.
2748
2749
  */
2749
2750
  export interface PseudoTerminalOptions {
2750
2751
  /**
@@ -2759,6 +2760,22 @@ export module '@theia/plugin' {
2759
2760
  pty: Pseudoterminal;
2760
2761
  }
2761
2762
 
2763
+ /**
2764
+ * Options a virtual process terminal.
2765
+ */
2766
+ export interface ExtensionTerminalOptions {
2767
+ /**
2768
+ * The name of the terminal.
2769
+ */
2770
+ name: string;
2771
+
2772
+ /**
2773
+ * An implementation of [Pseudoterminal](#Pseudoterminal) where an extension can
2774
+ * control it.
2775
+ */
2776
+ pty: Pseudoterminal;
2777
+ }
2778
+
2762
2779
  /**
2763
2780
  * Defines the interface of a terminal pty, enabling extensions to control a terminal.
2764
2781
  */
@@ -4439,6 +4456,14 @@ export module '@theia/plugin' {
4439
4456
  */
4440
4457
  export function createTerminal(options: PseudoTerminalOptions): Terminal;
4441
4458
 
4459
+ /**
4460
+ * Creates a pseudo where an extension controls its input and output.
4461
+ *
4462
+ * @param options ExtensionTerminalOptions.
4463
+ * @return A new Terminal.
4464
+ */
4465
+ export function createTerminal(options: ExtensionTerminalOptions): Terminal;
4466
+
4442
4467
  /**
4443
4468
  * Register a [TreeDataProvider](#TreeDataProvider) for the view contributed using the extension point `views`.
4444
4469
  * This will allow you to contribute data to the [TreeView](#TreeView) and update if the data changes.