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
before/test_query.qlcontains the erroneous query;after/test_query.qlshows the corrected version after addressing the diagnostics. - Monitoring state updated to record a successful
codeql_lsp_diagnosticscall.