Folding breaks and scroll jumps around while writing code, why?

Open
#1,420 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java, typescript, vscode

Research direction

Start by reproducing the behavior while Java methods are folded and autocomplete is opened during editing. Trace whether autocomplete triggers method unfolding or an editor scroll change; done means the folded methods stay folded and the view remains at the editing location.

Written by the indexing model from the issue text.

Description

ai-triaged area/jdtls bug needs-investigation

In general I fold all the methods in my classes, then when I try to add a new method and start writing, the autocomplete appears and the rest of the methods get unfolded and the editor scrolls up randomly, so I lose the line where I was adding code. The cursor is still there so I press the keyboard arrows and the editor scrolls back again to the place I was editing, but this behavior is annoying.

Any solution?

Dominant language
TypeScript
Stars
352
Forks
166
Avg merge
17h 47m
Merged PRs (30d)
32

Contributor guide

No contributing guide indexed for this repository

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.

More from microsoft/vscode-java-pack

All issues in microsoft/vscode-java-pack

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.