Language Server Protocol (LSP) implementation for the mq query language, providing rich IDE features for mq development.
Features
- 🔍 Diagnostics: Real-time syntax and semantic error reporting
- 💡 Code Completion: Intelligent suggestions for selectors, functions, and variables
- 📖 Hover Information: Inline documentation and type information
- 🎯 Go To Definition: Navigate to symbol definitions with a single click
- 🔗 Find References: Locate all usages of a symbol across your workspace
- 🗂️ Document Symbols: Outline view of all symbols in the current file
- 🎨 Semantic Tokens: Enhanced syntax highlighting based on semantic analysis
- ✨ Code Formatting: Automatic code formatting following mq style guidelines
Installation
Using with VSCode Extension
The easiest way to use mq-lsp is through the VSCode extension:
- Install the mq VSCode extension
- The LSP server is included and configured automatically
Standalone Installation
Using Cargo
From Source
The binary will be available at target/release/mq-lsp.
Usage
Running the LSP Server
The LSP server communicates via stdin/stdout following the LSP protocol:
Development
Building from Source
Running Tests
License
Licensed under the MIT License.