VSCodeVim / VSCodeVim/Vim

Undo via `u` does not remove file dirty flag

Open
#3,201 9 comments 61 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug
Using u to undo changes doesn't restore the file to a clean state when reverting back to the original file that was opened.

To Reproduce
Steps to reproduce the behaviour:

  1. open file
  2. enter insert mode
  3. insert a space, observe tab has dirty icon
  4. exit to normal mode and press u to remove change
  5. File is still considered dirty

Expected behaviour
If you perform this same operation but instead of pressing u you press ctrl+z the file will return to a clean state, this should be the same for u

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 0.16.12
  • VSCode version: 1.28.2
  • OS: Ubuntu 18 LTS

Additional context
Related issue in vscode for context https://github.com/Microsoft/vscode/issues/919

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

Start by reproducing the sequence in VSCode 1.28.2 with VSCodeVim 0.16.12, comparing u with ctrl+z and observing the file's dirty indicator. The issue is done when undoing the inserted space with u restores the file to a clean state.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.