Skip to main content

Crate agnix_lsp

Crate agnix_lsp 

Source
Expand description

§agnix-lsp

Language Server Protocol implementation for agnix.

Provides real-time validation of agent configuration files in editors that support LSP (VS Code, Neovim, Helix, etc.).

§Features

  • Real-time diagnostics on file open, change, and save
  • Quick-fix code actions for automatic repairs
  • Hover documentation for configuration fields
  • Supports all agnix validation rules
  • Maps agnix diagnostics to LSP diagnostics

§Usage

Run the LSP server:

agnix-lsp

The server communicates over stdin/stdout using the LSP protocol.

Structs§

Backend
LSP backend that handles validation requests.
VsCodeConfig
VS Code configuration received from workspace/didChangeConfiguration.
VsCodeRules
Rule category toggles from VS Code settings.
VsCodeSpecs
Spec revision pins from VS Code settings.
VsCodeVersions
Tool version pins from VS Code settings.

Functions§

start_server
Start the LSP server.