chore: add limited public API for builtinRpcProcedures (#10499)
This is not a complete public API, just enough to avoid an `open private` in ProofWidgets.
This commit is contained in:
parent
85ce814689
commit
a4dcb25f69
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue