Im working in a very old Java project (created originally on eclipse) using VSCode and the official plugin for Java.
The project has some folders which are not longer used/valid and I hide them because they dont compile neither. I was able to do this using "files.exclude" in settings.json file.
The thing is I dont want to see those problem in my "Problem" tabs. In addition every time I launch my debugger I get a message saying "Build failed, do you want to continue?" which is really annoying.
So, is it possible to hide those problem which belong to my ignored folders ?
Many many thanks,
Your use-case is exactly the one described in Microsoft/vscode issue 43135, covered by issue 22289
This has been covered by the files.exclude
setting that you are using, and the issue 22289 animation shows it does apply to problems too:
Count badge shows total number of problems.
Filtered count is shown in the badge in filter input box.
Filters in Problems view are view only filters. It will only exclude in Problems view.
So... that does not translate to the File Explorer view.
Hence the request:
I like to have a files.problemExclude
in settings
Likes other comment in this issue, files.exclude
will exclude the entire node_module
folder from project explorer, which is not desired.
I just do not want to see any problem in my node_module
folder.
That was requested, but closed in vscode issue 52011.
As commented, deleting those folders (kept in version control in a past revision/commit) is the simplest solution for now.
This might be helpful to you. v1.41 is adding the ability to filter the Problems pane to not show errors/warnings/info/current file only/hide excluded files. See https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_41.md#problems-panel