Skip to content

Add configurable diagnostic timing (debounce or on-save only) #843

@tnoABS

Description

@tnoABS

Current behavior: clangd diagnostics run on every keystroke with a (probably) fixed internal debounce and cannot be adjusted by the user.

Requested features:

  1. Configurable debounce delay
  • Setting: clangd.diagnostics.debounceTime (integer, milliseconds)
  • Effect: wait at least this long after the last keystroke before triggering diagnostics.
  1. Diagnostics on save only
  • Setting: clangd.diagnostics.runOnSave (boolean)
  • Effect: disable live diagnostics; publish errors and warnings only when the file is saved.

Use cases:

  • Prevent distracting re-analysis while typing comments or sketching code.
  • Improve responsiveness in large codebases.
  • Give users control over immediacy vs. performance trade-off.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions