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