VSCodeVim / VSCodeVim/Vim

`<C-d>` or `<C-u>` doesn't work when opening a file with imports folded by default.

Open
#7,846 5 comments 3 reactions 0 assignees View on GitHub

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:

  1. Open a JavaScript file with imports and fold them.
  2. Close file and open it again.
  3. 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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.