Compare commits

...

1 Commits

Author SHA1 Message Date
Kim Morrison
03930cef09 chore: add limited public API for builtinRpcProcedures 2025-09-22 13:13:34 +02:00

View File

@@ -36,6 +36,10 @@ private unsafe def evalRpcProcedureUnsafe (env : Environment) (opts : Options) (
private opaque evalRpcProcedure (env : Environment) (opts : Options) (procName : Name) :
Except String RpcProcedure
/-- Checks whether a builtin RPC procedure exists with the given name. -/
def existsBuiltinRpcProcedure (method : Name) : IO Bool := do
return ( builtinRpcProcedures.get).contains method
open RequestM in
def handleRpcCall (p : Lsp.RpcCallParams) : RequestM (RequestTask Json) := do
-- The imports are finished at this point, because the handleRequest function