redhat-developer / redhat-developer/vscode-java

Syntax highlighting and checking often breaks while typing comments

オープン
#4,387 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug
主要言語
TypeScript
スター
2.3k
フォーク
546
平均マージ
20時間 1分
マージ済み PR(30日)
11

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

レポートにはソースファイル、テスト、エントリポイントが記載されていません。まず、記載されている JDK とエディターのバージョンを使って VS Code Java extension でコメントの更新が遅延する現象を再現し、次にインクリメンタルな構文チェックとハイライトの経路を追跡してください。コメントの入力中も更新が即時かつ一貫していれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java, typescript, vscode
領域
developer-experience, tooling
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。