25 releases
Uses new Rust 2024
| new 0.5.26 | Apr 14, 2026 |
|---|---|
| 0.5.25 | Apr 6, 2026 |
| 0.5.24 | Mar 28, 2026 |
| 0.5.17 | Feb 28, 2026 |
| 0.5.3 | Nov 24, 2025 |
#2879 in Text processing
5MB
65K
SLoC
mq-lsp
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
cargo install mq-lsp
From Source
git clone https://github.com/harehare/mq
cd mq/crates/mq-lsp
cargo build --release
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:
mq-lsp
Development
Building from Source
git clone https://github.com/harehare/mq
cd mq
cargo build -p mq-lsp
Running Tests
cargo test -p mq-lsp
License
Licensed under the MIT License.
Dependencies
~38MB
~616K SLoC