`<C-d>` or `<C-u>` doesn't work when opening a file with imports folded by default.
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
If a file contains folded imports the <C-d> and <C-u> keys don't work.
Steps to reproduce the behavior:
- Open a JavaScript file with imports and fold them.
- Close file and open it again.
- Try pressing
<C-d>.
Expected behavior:
It's supposed to take you down half a page but those keys don't work. It only starts working if you go to the top of the file and hit j a few times to unfold the lines.
- Extension (VsCodeVim) version: 1.23.1
- VSCode version: 1.69
- OS: MacOS
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
Reproduce the issue in VSCodeVim 1.23.1 with a JavaScript file whose imports are folded when reopened, then inspect the handling of and alongside folded lines. The fix is complete when both keys move half a page immediately after reopening the file, without first unfolding imports by moving with j.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, 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