u/thing_on_a_spring

▲ 2 r/vscode

File explorer erroneously coloring files as warnings, then changes its mind on preview

I've inherited a legacy java project where the dir structure is pretty complex and deeply nested (isn't that just every java project?)

When I open this workspace in vscode, I immediately see heaps of subdirs appearing in red, indicating vscode thinks they contain files with warnings

But when I drill into those subdirs, and click each of the red files, they are previewed in vscode

At this point it decides they are no issues after all, the filename turns white in file explorer, along with all the parent dir hierarchy. This happens each time I open the workspace, pretty annoying!

I'm guessing there's some mismatch between the linter being used to preview files, and the linter which is checking the overall project for warnings

The only java-specific extension Im using is "Language Support for java(TM) by Red Hat"

How can I troubleshoot this, or identify whats causing the files to turn red when workspace is first loaded?

Version: 1.114.0
Commit: e7fb5e96c0730b9deb70b33781f98e2f35975036
Date: 2026-04-01T09:27:11Z
Electron: 39.8.3
ElectronBuildId: 13658728
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Linux x64 6.19.11-arch1-1
reddit.com
u/thing_on_a_spring — 21 hours ago