(: Save an XQuery doc and it's parse :)
import module namespace docs="lsp/docs" at "docs.xqm";

(:~ from LSP didOpen or didChange msg:)
declare variable $params  as map(*) external;
declare variable $webSocket as xs:string external;

docs:open(
    $webSocket,
    $params 
)=>prof:time("⏱️ doc:save "),

ws:send(
    {"jsonrpc": "2.0",
     "method":"window/logMessage",
     "params":{"type":1,"message":"TODO"}
    },
    $webSocket
)


 