22 lines
No EOL
444 B
Text
22 lines
No EOL
444 B
Text
(: 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;
|
|
|
|
prof:time(docs:save(
|
|
$webSocket,
|
|
$params
|
|
),"⏱️ doc:save "),
|
|
|
|
ws:send(
|
|
{"jsonrpc": "2.0",
|
|
"method":"window/logMessage",
|
|
"params":{"type":1,"message":"TODO"}
|
|
},
|
|
$webSocket
|
|
)
|
|
|
|
|
|
|