simvx.ide.lsp.client

IDE-specific LSP client — thin wrapper around simvx.core.lsp.LSPClient.

Routes LSP results through State signals and converts diagnostics to the IDE’s Diagnostic dataclass.

Module Contents

Classes

LSPClient

LSP client that integrates with :class:State.

Data

log

API

simvx.ide.lsp.client.log

‘getLogger(…)’

class simvx.ide.lsp.client.LSPClient(state: simvx.ide.state.State, command: str = 'pylsp', args: list[str] | None = None, env: dict[str, str] | None = None)[source]

Bases: simvx.core.lsp.LSPClient

LSP client that integrates with :class:State.

Initialization

start()
stop()
poll()
notify_open(path: str, text: str, language_id: str = 'python')
notify_close(path: str)
notify_save(path: str, text: str | None = None)
notify_change(path: str, text: str, version: int | None = None)
request_completion(path: str, line: int, col: int)
request_definition(path: str, line: int, col: int)
request_hover(path: str, line: int, col: int)
request_references(path: str, line: int, col: int)
request_rename(path: str, line: int, col: int, new_name: str)
request_formatting(path: str, tab_size: int = 4, insert_spaces: bool = True)