redhat-developer / redhat-developer/vscode-java

Syntax highlighting and checking often breaks while typing comments

Open
#4,387 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

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.

Image

To Reproduce
Steps to reproduce the behavior:

  1. Type a comment
  2. Observe that the syntax highlighting breaks
  3. 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

Contributor guide

Open the contributing guide

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

The report names no source files, tests, or entry points. Start by reproducing the delayed comment update in the VS Code Java extension with the listed JDK and editor versions, then trace the incremental syntax-checking and highlighting path; done means updates remain immediate and consistent while typing comments.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.