Don't fire onDidEndTerminalShellExecution with exitCode undefined immediately after first onDidChangeTerminalShellIntegration #221399
Labels
api
bug
Issue identified by VS Code Team member as probable bug
*not-reproducible
Issue cannot be reproduced by VS Code Team member as described
terminal
General terminal issues that don't fall under another label
I think what is causing problems for @anthonykim1 is that calling
executeCommand
immediately afteronDidChangeTerminalShellIntegration
would fire multiple times and end up triggering an invalidonDidEndTerminalShellExecution
with exitCode=undefined but the execution was set when it shouldn't have been. We should suppress this event if possible.The text was updated successfully, but these errors were encountered: