Tests that codeql_lsp_diagnostics detects syntax errors in invalid QL code.
- ql_code: Invalid QL snippet with syntax errors (
invalid_type x\nwhere x = "test"\nselect x, "This has syntax errors").
isValidisfalsewith one or more error diagnostics.- The
test_query.qlfile remains unchanged (identical in before/ and after/). - Monitoring state updated to record a successful
codeql_lsp_diagnosticscall.