redhat-developer / redhat-developer/vscode-java

Git changes highlighting missing when Java project is open

Open
#2,393 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

While working with Java in VS Code, I noticed Git changes highlighting missing when Java project is open.

Environment
  • Operating System: Windows 10
  • JDK version: OpenJDK
java version "17.0.2" 2022-01-18 LTS
Java(TM) SE Runtime Environment (build 17.0.2+8-LTS-86)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.2+8-LTS-86, mixed mode, sharing)
  • Visual Studio Code version: 1.66.0
  • Java extension version: v0.22.2
Steps To Reproduce
  1. Open or create basic Java project (with Gradle?).
  2. Initialize git in the project directory.
  3. Create initial commit.
  4. Do some changes.
Current Result

No difference colours while in editor with Java project open:
image

Meanwhile other editor (without Java project open):
image

Expected Result

I wish Java extensions haven't mess up Git highlighting...

Additional Information

If logs are necessary, what should I include for visual bugs?

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

Reproduce the missing Git change highlighting in the listed Windows 10, JDK 17, VS Code 1.66.0, and Java extension v0.22.2 environment using the Java project and Git steps provided. Compare the Java project editor with the non-Java editor, then identify the relevant extension entry point and verify that changed files show the expected editor colours.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, java, typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.