VIM Extension with VS Code - Does not preserve values on SHIFT+I
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Hi, I am posting this issue on behalf of @ahanusa https://github.com/microsoft/vscode/issues/188263. The issue is as follows:
- VS Code Version: June 2023
- OS Version: MacOS Ventura (Intel)
Steps to Reproduce:
- Install VIM extension installed (vscodevim)
- Create and open a C# app
- Create a class and a constructor with a single argument, let's call it
foo - Inside constructor, type the following line:
foo = foo; - Immediately after ending the above line, hit
ESC, thenSHIFT + I, then typethis. - Notice that
foois removed.
All previous versions would preserve foo as this is how VIM is supposed to work.
You can also repro this behavior by performing bulk insert commands (CTRL + V and down arrow to bulk select, followed by SHIFT + I)
Please fix, this is absolutely crippling behavior. Thank you!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the behavior in the VS Code Vim extension using the reported C# constructor example on macOS Ventura. Compare ESC, SHIFT+I, and the CTRL+V bulk-insert flow, then verify that typing this. preserves the existing foo value in both cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100