Does Project-specific compiler warning suppression affect LSP diagnostics in RAD Studio?
0 reputation · 27 Nov 2022, 07:31 UTC
In RAD Studio 12, developers can suppress specific compiler warnings (such as W1000) through Project > Options > Delphi Compiler > Hints and Warnings. This ensures that the Message View remains clean during build processes by filtering out known non-critical issues.
However, the Language Server Protocol (LSP) based Code Insight engine provides real-time diagnostics directly in the editor gutter. These diagnostics are governed by global settings under Tools > Options > Language > Code Insight, creating a potential discrepancy where a warning is suppressed during the build but remains visible as a gutter marker during active coding.
What is the mechanism for synchronizing project-level warning suppressions with the real-time LSP diagnostics engine? Is there a way to ensure that warnings disabled in the project options are also hidden from the editor's real-time diagnostics without disabling global Code Insight settings?