[add] connection state

This commit is contained in:
Andy Bunce 2025-08-22 15:22:31 +01:00
parent b7d0d8e03d
commit e32ff3d77a
8 changed files with 81 additions and 28 deletions

View file

@ -1,5 +1,5 @@
declare base-uri "../..";
import module namespace xq4="java:quodatum.parser.xq4";
(: "test/sample.docs/pdfbox.xqm"=>unparsed-text() :)
"2+4"
=>xq4:parseModule()
""
=>xq4:parseModule()

View file

@ -12,7 +12,7 @@ import { LSPClient, LSPPlugin, languageServerSupport } from "@codemirror/lsp-cli
// Language
import { xml } from "@codemirror/lang-xml";
// no error checking
// return promise with socket map or reject if no connect
function simpleWebSocketTransport(uri) {
let handlers = [];
return new Promise(function (resolve, reject) {