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
semantic_query.qlfile remains unchanged (identical in before/ and after/). - Monitoring state updated to record a successful
codeql_lsp_diagnosticscall.