VSCodeVim / VSCodeVim/Vim

`u`/`<C-r>` for undo/redo don’t work in the interactive playground

Open
#4,852 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/bug
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

To reproduce:
Steps to reproduce the behavior:

  1. Help → Interactive Playground.
  2. Select one of the editable areas.
  3. Modify the text in some way.
  4. Press u to undo the last change.

Expected behavior:
It should undo the change.

Actual behaviour:
“Already at oldest change” status text; nothing happens. (Much the same on Ctrl+R for redo when there are redoable changes.)

Note that the Visual Studio Code’s native Ctrl+Z and Ctrl+Shift+Z do work.

Environment:

  • Extension (VsCodeVim) version: 1.14.2
  • VSCode version: 1.45.0
  • OS: Windows 10.0.19041

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open Help → Interactive Playground and reproduce the behavior in an editable area, then trace the playground's handling of the u and Ctrl+R commands. Compare those paths with the working native Ctrl+Z and Ctrl+Shift+Z behavior. Done means u undoes the last edit and Ctrl+R redoes an undone edit without showing the incorrect status message.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.