Re-run command is backed up by one sequence with shell integration #202299
Labels
bug
Issue identified by VS Code Team member as probable bug
terminal-shell-integration
Shell integration infrastructure, command decorations, etc.
verified
Verification succeeded
Milestone
Tested on MacOS
(Shell integration for Windows Python REPL users are still colorless so could not test for Windows)
With shell integration decoration enabled on Mac and Linux users using Python REPL, I found out pressing re-run via the decoration offered commandline that is one before the appropriate/target commandline.
For example, clicking on decoration on
print('hello')
should've offeredprint('hello')
after "Do you want to run the command: ", but instead offered a command that is one before.(When debugging after clicking decoration circle) command.command in the _getCommandAction function seemed to also command that is one before the appropriate/target command.
Debugging with breakpoint on line 479 (
vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.ts
Line 479 in eee233f
The text was updated successfully, but these errors were encountered: