simvx.core.lsp.server

SimVX Language Server – completes node type names in a Python source file.

Module Contents

Classes

SimVXLSPServer

Language server offering one thing: the names of registered node types.

Data

log

API

simvx.core.lsp.server.log

‘getLogger(…)’

class simvx.core.lsp.server.SimVXLSPServer[source]

Language server offering one thing: the names of registered node types.

A completion request is answered with the entries of Node._registry whose name starts with the identifier being typed, each annotated with the node’s declared properties. Anything else – a member access after a dot, a position inside a string or a comment – gets no items, because the server holds no information that would make an answer better than a guess.

It does not offer diagnostics, member completions resolved against a node’s properties, or input action names. Those need the source parsed and the enclosing scope resolved, which is scheduled with the editor work rather than bolted on here.

Initialization

run() int[source]

Run the server on stdio, reading JSON-RPC messages.

Returns the process exit code: 0 when the client asked for a shutdown before closing the connection, 1 when it did not.