Skip to content

Commit 8d0ac87

Browse files
committed
Doc TerminalShellExecutionEndEvent.exitCode
Part of microsoft#145234
1 parent 18c74e3 commit 8d0ac87

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ declare module 'vscode' {
179179
* The terminal that shell integration has been activated in.
180180
*/
181181
readonly terminal: Terminal;
182+
182183
/**
183184
* The shell integration object.
184185
*/
@@ -190,10 +191,11 @@ declare module 'vscode' {
190191
* The terminal shell execution that has ended.
191192
*/
192193
readonly execution: TerminalShellExecution;
194+
193195
/**
194-
* The exit code reported by the shell.
196+
* The exit code reported by the shell. `undefined` means the shell did not report an exit
197+
* code or the shell reported a command started before the command finished.
195198
*/
196-
// TODO: Explain what undefined means
197199
readonly exitCode: number | undefined;
198200
}
199201

0 commit comments

Comments
 (0)