Ensure duplicate commands with different exit codes show correct command decorations #143766
Labels
bug
Issue identified by VS Code Team member as probable bug
insiders-released
Patch has been released in VS Code Insiders
linux
Issues with VS Code on Linux
terminal-shell-bash
An issue in the terminal specific to bash
terminal-shell-integration
Shell integration, command decorations, etc.
terminal-shell-zsh
An issue in the terminal specific to zsh
verified
Verification succeeded
Milestone
This is a follow up from #143707 which worked around the majority case of an issue.
See the workaround: 78a9a54
The proper fix will involve sending both the exit code and the history ID over to VS Code which will then do what's happening now but also have the correct exit code to set, instead of assuming it's the last command's exit code.
We should write a little script as part of this that alternates exit codes by setting/unsetting an environment variable so it's easier to test and verify.
The text was updated successfully, but these errors were encountered: