-
Notifications
You must be signed in to change notification settings - Fork 493
Description
I'm encountering an issue where TODO comments in Java files are still being reported in the Problems window, even after explicitly disabling them via workspace settings.
Steps to Reproduce:
- Create a new Java file with a TODO comment:
public class Test {
public static void main(String[] args) {
// TODO: This is a test
System.out.println("Hello");
}
}
-
Add the following to .vscode/settings.json:
{
"java.errors.reportTodoComments": false,
"java.configuration.taskTags": [],
"java.errors.suppressedDiagnostics": [
"536871362"
]
} -
Restart VS Code and optionally run Java: Clean Java Language Server Workspace.
Expected Behavior:
The TODO comment should no longer appear in the Problems window.
Actual Behavior:
The TODO comment is still reported as an informational diagnostic:
TODO: This is a test Java(536871362)
Additional Info:
VS Code version:
Version: 1.103.2 (system setup)
Commit: 6f17636121051a53c88d3e605c491d22af2ba755
Date: 2025-08-20T16:45:34.255Z
Electron: 37.2.3
ElectronBuildId: 12035395
Chromium: 138.0.7204.100
Node.js: 22.17.0
V8: 13.8.500258-electron.0
OS: Windows_NT x64 10.0.22631
Java Language Support extension version: Language Support for Java(TM) by Red Hat v 1.27.0
OS: Win11
No other extensions (e.g., SonarLint, CheckStyle) are active.
Verified that the issue persists even in a minimal workspace with extensions disabled.
Screenshot:
