-
Notifications
You must be signed in to change notification settings - Fork 38.4k
Description
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 offered print('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
| currentCommand.command = this._hooks.isCommandStorageDisabled ? '' : this._terminal.buffer.active.getLine(currentCommand.commandStartMarker.line)?.translateToString(true, currentCommand.commandStartX, currentCommand.commandRightPromptStartX).trim(); |
