redhat-developer / redhat-developer/vscode-java
Bug: Formatter causing some lines get erased
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 2.3k
- Forks
- 546
- Ø Merge
- 20 Std. 1 Min.
- Gemergte PRs (30 T.)
- 11
Beschreibung
I love to use VSC Java plugin but I had so much pain working with java now.
The reason I like vscode now only for the ui but this plugin is very customisable like a way to line up curly bracket.
Now the "Format Document" is glitchy, it somehow erased some part of the code when I indent it.
I'm not sure if it's related to any tokens because when this happens, if I didn't remember wrongly, it caused the semantic highlight changed too. But then the semantic tokens bug were patched but this issue persist (still there).
Environment
Operating System: Windows 10
JDK version: 14
Visual Studio Code version: 1.60.0 before update also the same
Java extension version: -
Steps To Reproduce
Just edit the code and with comments, on performing indentation, it will cause glitches
This happens when I start typing code for long time.

I don't know if this info help, since this plugin doesn't have built-in option to line up braces plus the default switch-case indentation is weird, so I use this profile:
configuration.zip
Could it be this profile is causing conflict? I'd be glad to provide more information if needed.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, Format Document unter Windows 10 mit JDK 14, Java-Kommentaren und der bereitgestellten configuration.zip zu reproduzieren, insbesondere nach längerem Tippen. Vergleiche das Ergebnis mit der semantischen Hervorhebung und prüfe, ob Quelltextzeilen gelöscht werden; abgeschlossen ist die Aufgabe, wenn die Formatierung den gesamten Code erhält und die Hervorhebung intakt bleibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java, vscode
- Bereich
- tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100