je_web_runner.action_lsp.server

Action JSON LSP server:基於 LSP 3.17 protocol,提供 WR_* 補全與 lint 診斷。 Minimal LSP server speaking JSON-RPC 2.0 over stdio with the standard Content-Length headers. Supports:

  • initialize / initialized / shutdown / exit

  • textDocument/didOpen / didChange / didClose

  • textDocument/completion — suggests every registered WR_* command

  • textDocument/publishDiagnostics — pushes lint findings on document open / change

The action linter and command list are pulled from existing modules so the LSP stays a thin presentation layer.

Functions

serve_stdio([stdin, stdout, server])

Run the LSP loop until stdin EOF or an exit notification.

Classes

ActionLspServer(documents, initialized)

Exceptions

ActionLspError

Raised when a request can't be parsed or handled.

exception je_web_runner.action_lsp.server.ActionLspError

Bases: WebRunnerException

Raised when a request can’t be parsed or handled.

class je_web_runner.action_lsp.server.ActionLspServer(documents: 'Dict[str, _Document]'=<factory>, initialized: 'bool' = False)

Bases: object

command_names() List[str]
documents: Dict[str, _Document]
handle(message: Dict[str, Any]) Dict[str, Any] | None
initialized: bool = False
je_web_runner.action_lsp.server.serve_stdio(stdin: TextIO | None = None, stdout: TextIO | None = None, server: ActionLspServer | None = None) None

Run the LSP loop until stdin EOF or an exit notification.