redhat-developer / redhat-developer/vscode-java
Syntax highlighting and checking often breaks while typing comments
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
Describe the bug
When I type comments into Java code, the syntax checking and highlighting sometimes gets out-of-sync for code below the comment insertion point.
To Reproduce
Steps to reproduce the behavior:
- Type a comment
- Observe that the syntax highlighting breaks
- After waiting a second, type one more character, and observe that it fixes itself
This appears to happen for all projects for me, so I don't think a minimal reproducible example is possible. I don't even know where to start with making a minimal example.
Expected behavior
Syntax highlighting consistently and immediately updates as I type.
Environment
- Operating System: NixOS 25.11, but have also reproduced on Fedora Linux
- JDK version: 21
- Visual Studio Code version: 1.113.0
- Java extension version: 1.53.0
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
Der Bericht nennt keine Quelldateien, Tests oder Einstiegspunkte. Beginne damit, die verzögerte Aktualisierung von Kommentaren in der VS Code Java extension mit den aufgeführten JDK- und Editor-Versionen zu reproduzieren, und verfolge dann den Pfad der inkrementellen Syntaxprüfung und Hervorhebung; als erledigt gilt die Aufgabe, wenn Aktualisierungen beim Eingeben von Kommentaren sofort und konsistent bleiben.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java, typescript, vscode
- Bereich
- developer-experience, tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100