Environment
- Operating System: win11 & macOS 15
- JDK version: JDK 17
- Language Support for Java(TM) by Red Hat :v1.4x.x (v.1.40-v.1.42 also)

While developing Java in VS Code, I occasionally run into resolution issues. I used to resolve them by executing the "Clean Java Language Server Workspace" command. However, I've recently observed that after using this command and restarting VS Code, the diagnostics (errors, warnings, infos) count always resets to 0.
Furthermore, diagnostics appear to only analyze files that are currently open in the editor. As a result, if a change breaks a reference in another file that isn’t opened, no error is shown—unless the affected file is explicitly opened.
The only workaround I’ve found so far is to clone the project into a new directory. Cloning into the same original path doesn't solve the issue, and clearing cache has no effect either.
Environment
While developing Java in VS Code, I occasionally run into resolution issues. I used to resolve them by executing the "Clean Java Language Server Workspace" command. However, I've recently observed that after using this command and restarting VS Code, the diagnostics (errors, warnings, infos) count always resets to 0.
Furthermore, diagnostics appear to only analyze files that are currently open in the editor. As a result, if a change breaks a reference in another file that isn’t opened, no error is shown—unless the affected file is explicitly opened.
The only workaround I’ve found so far is to clone the project into a new directory. Cloning into the same original path doesn't solve the issue, and clearing cache has no effect either.