Skip to content

Commit 4d18682

Browse files
authored
Merge pull request microsoft#157653 from microsoft/130231
Finalize TerminalExitReason API
2 parents 516f0d1 + 1a50091 commit 4d18682

File tree

3 files changed

+35
-48
lines changed

3 files changed

+35
-48
lines changed

src/vs/workbench/services/extensions/common/extensionsApiProposals.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ export const allApiProposals = Object.freeze({
6060
telemetry: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.telemetry.d.ts',
6161
terminalDataWriteEvent: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalDataWriteEvent.d.ts',
6262
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',
6463
testCoverage: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.testCoverage.d.ts',
6564
testObserver: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.testObserver.d.ts',
6665
textSearchProvider: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.textSearchProvider.d.ts',

src/vscode-dts/vscode.d.ts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10822,6 +10822,41 @@ declare module 'vscode' {
1082210822
* without providing an exit code.
1082310823
*/
1082410824
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,
1082510860
}
1082610861

1082710862
/**

src/vscode-dts/vscode.proposed.terminalExitReason.d.ts

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)