VS Code extension
Section titled “VS Code extension”The official extension is qql-lang (publisher srimon12), displayed as "QQL — Qdrant Query Language". It is published on the Visual Studio Code marketplace and is also bundled as a local VSIX in the repository at editors/vscode/qql-lang-0.2.0.vsix.
code --install-extension srimon12.qql-langOr install the local VSIX manually:
- Open the Extensions panel (
Ctrl+Shift+X). - Open the
⋯(More Actions) menu. - Choose Install from VSIX... and select
editors/vscode/qql-lang-0.2.0.vsix.
Syntax highlighting
Section titled “Syntax highlighting”The TextMate grammar highlights .qql files with 130+ keywords across 8 scopes, covering statements, operators, punctuation, strings, and comments. The same grammar powers the syntax highlighting on this website.
Live diagnostics
Section titled “Live diagnostics”The extension runs the bundled qql-wasm parser on every change, debounced at ~300 ms, and reports grammar errors with precise spans and stable error codes. Invalid statements are underlined directly in the editor.
Autocompletion
Section titled “Autocompletion”Completions cover 130+ keywords and 28 statement snippet templates, including:
QUERY NEAREST/QUERY HYBRID/QUERY HYBRID DBSFCTE + FUSIONandCTE + RERANKQUERY RECOMMEND,QUERY MMR,QUERY FORMULAQUERY POINTS,QUERY ORDER BY,QUERY SAMPLEUPSERT INTO,CREATE COLLECTION,CREATE INDEXSCROLL,COUNT,COUNT EXACT,DELETE,DELETE PAYLOAD
Language configuration
Section titled “Language configuration”The extension ships a standard VS Code language configuration: Ctrl+/ toggles -- line comments, brackets {} [] () are matched and auto-closed, and single and double quotes auto-close as well.