paste race condition
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Describe the bug
holding 'p' pastes things into the wrong places (i.e. skips lines sometimes instead of pasting all the lines consecutively)
To Reproduce
Steps to reproduce the behavior:
- open a file you don't much care about :P
- at one of the first few lines of the file, write a loud comment like a fixme or something you wanna repeat so you don't forget to do it before committing :P
- hit escape to go to normal mode but keep your cursor to that line
- do a yy
- hold "p" for a few seconds
- See the pasted lines end up interwoven within the original file like a beautiful quilt
Expected behavior
The line pastes are consecutive
Screenshots
Environment (please complete the following information):
- Extension (VsCodeVim) version: 0.16.9
- VSCode version: 1.27.2
- OS: Linux - on kubuntu bionic
Additional context
I'm pretty sure this is a new bug post-0.16.6, because I'm sure I would have noticed it before - holding p like a maniac is something I do routinely.
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
The issue names no source files, tests, or entry points. Reproduce it by yanking a line in normal mode and holding p in VSCodeVim 0.16.9, then inspect the paste behavior; done means repeated pastes remain consecutive rather than becoming interwoven.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- 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