Skip to content

Show diagnostic code in UI

Glebs Ivanovskis requested to merge (removed):show-diagnostic-code into master

Language server can provide an optional code of a diagnostic. Currently Kate's LSP Client plugin does not expose this information in UI.

However, this information may be useful, at least for clangd the diagnostic code contains machine-friendly diagnostic code that can be used to suppress a specific diagnostic with a #pragma clang diagnostic ignored "-Wsomething-something" for Clang warnings or with a // NOLINT(something-something) comment for Clang Tidy warnings. Having diagnostic code in UI allows user to easily copy-paste it from LSP tab to source file being edited.

BUG: 457944

Edited by Glebs Ivanovskis

Merge request reports