From 437450a35c25538b5a8719aeee03d060be883f0c Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Fri, 20 Dec 2024 10:08:18 -0800 Subject: [PATCH] Explain exitCode undefined in more detail Fixes #236670 --- src/vscode-dts/vscode.d.ts | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/vscode-dts/vscode.d.ts b/src/vscode-dts/vscode.d.ts index c9ecff2b0b9..7edf86d0780 100644 --- a/src/vscode-dts/vscode.d.ts +++ b/src/vscode-dts/vscode.d.ts @@ -7724,10 +7724,17 @@ declare module 'vscode' { /** * The exit code reported by the shell. * - * Note that `undefined` means the shell either did not report an exit code (ie. the shell - * integration script is misbehaving) or the shell reported a command started before the command - * finished (eg. a sub-shell was opened). Generally this should not happen, depending on the use - * case, it may be best to treat this as a failure. + * When this is `undefined` it can mean several things: + * + * - The shell either did not report an exit code (ie. the shell integration script is + * misbehaving) + * - The shell reported a command started before the command finished (eg. a sub-shell was + * opened). + * - The user canceled the command via ctrl+c. + * - The user pressed enter when there was no input. + * + * Generally this should not happen. Depending on the use case, it may be best to treat this + * as a failure. * * @example * const execution = shellIntegration.executeCommand({