redhat-developer / redhat-developer/vscode-java

vscode sometimes does not detect .java files and thus no code action or content assist available

Open
#1,890 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I see that eventually my jbang setup projects vscode stops "seeing" the main .java file.

it is in file explorer, but not in java projects - it just sees the src directory not the content inside it.

sometimes minutes later it will show up. others it just never showsup .

Environment
  • Operating System: osx
  • JDK version: 11
  • Visual Studio Code version: both vscode and vscodium
  • Java extension version: 0.77
Steps To Reproduce
  1. jbang init -t github@jbangdev test.java
  2. jbang edit --live --open test.java
  3. sometimes test.java will not have any code action or validation applied.

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 issue on macOS with JDK 11, VS Code or VSCodium, and Java extension 0.77 using jbang init -t github@jbangdev test.java followed by jbang edit --live --open test.java. Investigate why test.java appears in the file explorer but not in Java projects, and verify that code actions, validation, and content assist consistently become available.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.