Formatting with `gqq` doesn't work while recording a macro
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
Formatting with gqq doesn't work while recording a macro. The text is not formatted and the recording is canceled instead.
To Reproduce
- Start recording a macro to a register
qn(the register doesn't matter) - Attempt to format a text with
gqqand observe that the text was not formatted and the recording canceled.
Expected behavior
As in Vim, the text should be formatted and the recoding should continue without any interruption.
Environment (please complete the following information):
- Extension (VsCodeVim) version: v0.16.13
- VSCode version: 1.29.1
- OS: macOS 10.14.1
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 reported sequence in VSCodeVim: record to register qn, then run gqq, using the listed VSCodeVim and VSCode versions if available. Trace the key handling for formatting during macro recording; done means the text is formatted and recording continues without interruption, as in Vim.
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
- 35/100