@theia/plugin 1.36.0-next.23 → 1.36.0-next.26

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 +35 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/plugin",
3
- "version": "1.36.0-next.23+c7ca0d55a",
3
+ "version": "1.36.0-next.26+46943639c",
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": "c7ca0d55a5300af3becf92eadcf290da2f568a3a"
35
+ "gitHead": "46943639ce543576db7a2f6a9ec2c053504bfb5c"
36
36
  }
package/src/theia.d.ts CHANGED
@@ -3058,6 +3058,41 @@ export module '@theia/plugin' {
3058
3058
  * without providing an exit code.
3059
3059
  */
3060
3060
  readonly code: number | undefined;
3061
+
3062
+ /**
3063
+ * The reason that triggered the exit of a terminal.
3064
+ */
3065
+ readonly reason: TerminalExitReason;
3066
+ }
3067
+
3068
+ /**
3069
+ * Terminal exit reason kind.
3070
+ */
3071
+ export enum TerminalExitReason {
3072
+ /**
3073
+ * Unknown reason.
3074
+ */
3075
+ Unknown = 0,
3076
+
3077
+ /**
3078
+ * The window closed/reloaded.
3079
+ */
3080
+ Shutdown = 1,
3081
+
3082
+ /**
3083
+ * The shell process exited.
3084
+ */
3085
+ Process = 2,
3086
+
3087
+ /**
3088
+ * The user closed the terminal.
3089
+ */
3090
+ User = 3,
3091
+
3092
+ /**
3093
+ * An extension disposed the terminal.
3094
+ */
3095
+ Extension = 4
3061
3096
  }
3062
3097
 
3063
3098
  /**