lsp
Language Server Protocol, IDE autocomplete, hover, diagnostics.
Load with: use lsp
Quick example
use lsp
result = lspne("value", "value")
prn(result)
Functions
LSP Server
lspne(i, o)
Creates a new instance. Takes i, o.
lsphn(srv, msg)
Performs the operation. Takes srv, msg.
lspin(srv, id, p)
Initialises. Takes srv, id, p.
Document management
lspop(srv, p)
Opens a connection or resource. Takes srv, p.
lspch(srv, p)
Checks a condition. Takes srv, p.
lspcl(srv, p)
Closes or clears. Takes srv, p.
lspap(t, ch)
Performs the operation. Takes t, ch.
lsppo(t, pos)
Performs the operation. Takes t, pos.
Language features
lspco(srv, id, p)
Connects. Takes srv, id, p.
lspfi(ctx, syms)
Performs the operation. Takes ctx, syms.
lspho(srv, id, p)
Performs the operation. Takes srv, id, p.
lspde(srv, id, p)
Decodes. Takes srv, id, p.
lspre(srv, id, p)
Performs the operation. Takes srv, id, p.
lspsy(srv, id, p)
Performs the operation. Takes srv, id, p.
lsprn(srv, id, p)
Performs the operation. Takes srv, id, p.
lspac(srv, id, p)
Performs the operation. Takes srv, id, p.
lspsh(srv, id)
Performs the operation. Takes srv, id.
Parsing & Analysis
lspar(src)
Performs the operation. Takes src.
lspsy(ast)
Performs the operation. Takes ast.
lspsy(ast, pos)
Performs the operation. Takes ast, pos.
lspre(ast, nm)
Performs the operation. Takes ast, nm.
lspct(ast, pos)
Performs the operation. Takes ast, pos.
lspdi(ast)
Disconnects. Takes ast.
lsped(t, old, new)
Performs the operation. Takes t, old, new.
Symbol kinds
lspki(t)
Performs the operation. Takes t.
Messaging
lspre(srv, id, r)
Performs the operation. Takes srv, id, r.
lspno(srv, m, p)
Performs the operation. Takes srv, m, p.
lsppu(srv, uri, d)
Performs the operation. Takes srv, uri, d.
lspwr(srv, msg)
Writes data. Takes srv, msg.
lspre(srv)
Performs the operation. Takes srv.
Main loop
lspma()
Performs the operation.
Notes
- Language Server Protocol - hover, completion, diagnostics.