Skip to content

Unable to suppress TODO diagnostics using java.errors.reportTodoComments or java.errors.suppressedDiagnostics #4196

@meethey

Description

@meethey

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:

  1. 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");
}
}

  1. Add the following to .vscode/settings.json:
    {
    "java.errors.reportTodoComments": false,
    "java.configuration.taskTags": [],
    "java.errors.suppressedDiagnostics": [
    "536871362"
    ]
    }

  2. 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:

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions