Skip to content

Interactive window interactive.history.previous and interactive.history.next do not persist history position when reexecuting commands #131659

@joyceerhl

Description

@joyceerhl
  1. Execute four cells from the interactive window input box, e.g. print(1), print(2), print(3), print(4)
  2. To reexecute multiple commands from earlier in your history, e.g. print(1) and print(2) use interactive.history.previous via the up arrow
  3. After executing an entry from earlier in the history e.g. print(2), scroll position resets to the bottom of the history, and you have to start over and scroll up from the most recent command (4 -> 3 - > 2 -> 1). This can be frustrating for users who are trying to reexecute multiple commands. Note also that the original interactive window used to preserve your scroll history in the interactive window so that you didn't have to scroll back up through the entire history, and users have complained about this behavior change: Interactive Window Command History Search / Autocomplete vscode-jupyter#4716 (comment) Interactive Window Command History Search / Autocomplete vscode-jupyter#4716 (comment)

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable buginteractive-windowregressionSomething that used to work is now brokenunder-discussionIssue is under discussion for relevance, priority, approachverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions