@theia/plugin 1.26.0-next.36 → 1.26.0-next.43
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 +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.26.0-next.
|
|
3
|
+
"version": "1.26.0-next.43+9a10b6b5daa",
|
|
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": "
|
|
35
|
+
"gitHead": "9a10b6b5daab5e046f28fde8803b3612e84f6ff4"
|
|
36
36
|
}
|
package/src/theia.d.ts
CHANGED
|
@@ -2833,6 +2833,21 @@ export module '@theia/plugin' {
|
|
|
2833
2833
|
*/
|
|
2834
2834
|
readonly processId: PromiseLike<number>;
|
|
2835
2835
|
|
|
2836
|
+
/**
|
|
2837
|
+
* The exit status of the terminal, this will be undefined while the terminal is active.
|
|
2838
|
+
*
|
|
2839
|
+
* **Example:** Show a notification with the exit code when the terminal exits with a
|
|
2840
|
+
* non-zero exit code.
|
|
2841
|
+
* ```typescript
|
|
2842
|
+
* window.onDidCloseTerminal(t => {
|
|
2843
|
+
* if (t.exitStatus && t.exitStatus.code) {
|
|
2844
|
+
* vscode.window.showInformationMessage(`Exit code: ${t.exitStatus.code}`);
|
|
2845
|
+
* }
|
|
2846
|
+
* });
|
|
2847
|
+
* ```
|
|
2848
|
+
*/
|
|
2849
|
+
readonly exitStatus: TerminalExitStatus | undefined;
|
|
2850
|
+
|
|
2836
2851
|
/**
|
|
2837
2852
|
* Send text to the terminal.
|
|
2838
2853
|
* @param text - text content.
|
|
@@ -2907,6 +2922,20 @@ export module '@theia/plugin' {
|
|
|
2907
2922
|
readonly rows: number;
|
|
2908
2923
|
}
|
|
2909
2924
|
|
|
2925
|
+
/**
|
|
2926
|
+
* Represents how a terminal exited.
|
|
2927
|
+
*/
|
|
2928
|
+
export interface TerminalExitStatus {
|
|
2929
|
+
/**
|
|
2930
|
+
* The exit code that a terminal exited with, it can have the following values:
|
|
2931
|
+
* - Zero: the terminal process or custom execution succeeded.
|
|
2932
|
+
* - Non-zero: the terminal process or custom execution failed.
|
|
2933
|
+
* - `undefined`: the user forcibly closed the terminal or a custom execution exited
|
|
2934
|
+
* without providing an exit code.
|
|
2935
|
+
*/
|
|
2936
|
+
readonly code: number | undefined;
|
|
2937
|
+
}
|
|
2938
|
+
|
|
2910
2939
|
/**
|
|
2911
2940
|
* Options a virtual process terminal.
|
|
2912
2941
|
* @deprecated since 1.23.0 - Use [ExtensionTerminalOptions](#ExtensionTerminalOptions) instead.
|