redhat-developer / vscode-java

Java Language Support for Visual Studio Code
Eclipse Public License 2.0
2.07k stars 429 forks source link

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

Open maxandersen opened 3 years ago

maxandersen commented 3 years ago

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
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.
Summer-Shen commented 3 years ago

Ain't sure if this is the same thing, but recently my VS Code isn't "detecting" some of my Java files either. I use the Leetcode extension, and in recent days I'm not getting coding assistance I used to have (i.e. no highlighting for some variables) when I try to write Java code into the leetcode Java files. My .leetcode directory doesn't have a .vscode dir in it, but things worked fine before this week.

snjeza commented 3 years ago

I have tried to reproduce the issue on Windows and Linux, but haven't succeeded.