je_load_density.action_lsp.server

Minimal Language Server Protocol implementation for LoadDensity action JSON files.

Implements just enough of LSP 3.17 to make VS Code, JetBrains LSP plugin, and Neovim happy:

  • initialize / initialized / shutdown / exit

  • textDocument/didOpen / didChange (text sync) → textDocument/publishDiagnostics (runs the action linter)

  • textDocument/completion → completion items for every registered LD_* command.

The server only depends on the Python standard library; no pygls or lsprotocol runtime requirement.

Functions

completion_items()

compute_diagnostics(text)

serve_stdio()

Classes

ActionLspServer()

class je_load_density.action_lsp.server.ActionLspServer

Bases: object

attach(reader, writer) None
je_load_density.action_lsp.server.completion_items() Tuple[List[str], List[Dict[str, Any]]]
je_load_density.action_lsp.server.compute_diagnostics(text: str) List[Dict[str, Any]]
je_load_density.action_lsp.server.serve_stdio() None