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/exittextDocument/didOpen/didChange/didClosetextDocument/completion— suggests every registeredWR_*commandtextDocument/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
|
Run the LSP loop until stdin EOF or an |
Classes
|
Exceptions
Raised when a request can't be parsed or handled. |
- exception je_web_runner.action_lsp.server.ActionLspError
Bases:
WebRunnerExceptionRaised 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
exitnotification.