We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It is colored when there are unused imports, unused variables or any other warning in file. I don't want them to get colored.
The text was updated successfully, but these errors were encountered:
I tried putting "problems.decorations.enabled": false but it disabled red coloring of file which had errors, which I do not want to disable.
"problems.decorations.enabled": false
Sorry, something went wrong.
Have a look at https://github.com/eclipse-jdtls/eclipse.jdt.ls/wiki/Language-Server-Settings-&-Capabilities#java-compiler-options .There are a list of various compiler options (including various types of issues that can be set to error/warning/info/ignore. From what you've mentioned, you would want to set at least the following :
.vscode/settings.json
{ "java.settings.url": ".vscode/settings.prefs", }
.vscode/settings.prefs
org.eclipse.jdt.core.compiler.problem.unusedImport=ignore org.eclipse.jdt.core.compiler.problem.unusedLocal=ignore
There might be more to disable.
On the other hand if you just want to outright ignore all errors/warnings on a file, we have :
"java.diagnostic.filter": [ "**/Foo.java" ] which would ignore all errors/warning on any source file named Foo.java. See https://github.com/redhat-developer/vscode-java?tab=readme-ov-file#supported-vs-code-settings for more info on the various settings.
"java.diagnostic.filter": [ "**/Foo.java" ]
Foo.java
No branches or pull requests
It is colored when there are unused imports, unused variables or any other warning in file. I don't want them to get colored.
The text was updated successfully, but these errors were encountered: