mq-lsp

Crates.iomq-lsp
lib.rsmq-lsp
version0.5.12
created_at2025-11-23 11:57:04.172405+00
updated_at2026-01-25 14:05:48.907588+00
descriptionLanguage Server Protocol implementation for mq query language
homepagehttps://mqlang.org/
repositoryhttps://github.com/harehare/mq
max_upload_size
id1946428
size144,414
Takahiro Sato (harehare)

documentation

README

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:

  1. Install the mq VSCode extension
  2. 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.

Commit count: 3487

cargo fmt