File tree Expand file tree Collapse file tree 3 files changed +35
-48
lines changed
vs/workbench/services/extensions/common Expand file tree Collapse file tree 3 files changed +35
-48
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ export const allApiProposals = Object.freeze({
60
60
telemetry : 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.telemetry.d.ts' ,
61
61
terminalDataWriteEvent : 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalDataWriteEvent.d.ts' ,
62
62
terminalDimensions : 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalDimensions.d.ts' ,
63
- terminalExitReason : 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalExitReason.d.ts' ,
64
63
testCoverage : 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.testCoverage.d.ts' ,
65
64
testObserver : 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.testObserver.d.ts' ,
66
65
textSearchProvider : 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.textSearchProvider.d.ts' ,
Original file line number Diff line number Diff line change @@ -10822,6 +10822,41 @@ declare module 'vscode' {
10822
10822
* without providing an exit code.
10823
10823
*/
10824
10824
readonly code: number | undefined;
10825
+
10826
+ /**
10827
+ * The reason that triggered the exit of a terminal.
10828
+ */
10829
+ readonly reason: TerminalExitReason;
10830
+ }
10831
+
10832
+ /**
10833
+ * Terminal exit reason kind.
10834
+ */
10835
+ export enum TerminalExitReason {
10836
+ /**
10837
+ * Unknown reason.
10838
+ */
10839
+ Unknown = 0,
10840
+
10841
+ /**
10842
+ * The window closed/reloaded.
10843
+ */
10844
+ Shutdown = 1,
10845
+
10846
+ /**
10847
+ * The shell process exited.
10848
+ */
10849
+ Process = 2,
10850
+
10851
+ /**
10852
+ * The user closed the terminal.
10853
+ */
10854
+ User = 3,
10855
+
10856
+ /**
10857
+ * An extension disposed the terminal.
10858
+ */
10859
+ Extension = 4,
10825
10860
}
10826
10861
10827
10862
/**
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments