Skip to content

Commit 5d77214

Browse files
authored
Merge pull request microsoft#209940 from microsoft/tyriar/145234_exitCode
Doc TerminalShellExecutionEndEvent.exitCode
2 parents b2c4302 + 8d0ac87 commit 5d77214

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)