Tests that codeql_lsp_diagnostics detects semantic errors in QL code that
references undefined types (e.g., UndefinedType).
- ql_code: A QL query fragment referencing
UndefinedTypewhich does not exist, triggering a semantic "could not resolve type" diagnostic.
isValidisfalsewith semantic diagnostics about unresolvable types.- The
before/semantic_query.qlcontains the erroneous query;after/semantic_query.qlshows the corrected version after addressing the diagnostics. - Monitoring state updated to record a successful
codeql_lsp_diagnosticscall.