microsoft / microsoft/vscode-java-pack

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.

ai-triaged area/jdtls bug needs-investigation
Dominant language
TypeScript
Stars
352
Forks
166
Avg merge
17h 47m
Merged PRs (30d)
32

Description

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?

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.

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.