From 1a6be470eeb8d41e666c1e063b2280b6fb26f289 Mon Sep 17 00:00:00 2001 From: Andy Bunce Date: Fri, 17 Oct 2025 22:33:42 +0100 Subject: [PATCH] [add] no version check --- webapp/lsp-manager/app.xqm | 4 +- webapp/lsp-manager/common.xqm | 2 +- webapp/lsp-manager/views/layout.htm | 6 +- .../views/{profile.htm => sockets.htm} | 2 +- webapp/lsp/docs.xqm | 12 +++ webapp/lsp/lsp-typedefs.xqm | 2 +- webapp/lsp/providers/diagnostics.xqm | 92 +++++++++++-------- 7 files changed, 75 insertions(+), 45 deletions(-) rename webapp/lsp-manager/views/{profile.htm => sockets.htm} (91%) diff --git a/webapp/lsp-manager/app.xqm b/webapp/lsp-manager/app.xqm index a657959..ce75122 100644 --- a/webapp/lsp-manager/app.xqm +++ b/webapp/lsp-manager/app.xqm @@ -50,9 +50,9 @@ function app:home() as item()* { -declare %rest:path('/app/profile') +declare %rest:path('/app/sockets') function app:profile() { - cm:htmx2("profile.htm", map{}) + cm:htmx2("sockets.htm", map{}) }; declare %rest:path('/app/dev') diff --git a/webapp/lsp-manager/common.xqm b/webapp/lsp-manager/common.xqm index 0ea74d9..85bf2d5 100644 --- a/webapp/lsp-manager/common.xqm +++ b/webapp/lsp-manager/common.xqm @@ -68,7 +68,7 @@ file:resolve-path( $path,file:base-dir())=>file:read-text() (:~ write a message to standard BaseX log passthru item :) declare function cm:trace($items as item()*,$msg as xs:string) as item()*{ - $items,admin:write-log($msg || ": " || serialize($items,map{"method":"basex"}),"MDUI") + $items,admin:write-log($msg || ": " || serialize($items,map{"method":"basex"}),"LSP-MAN") }; declare function cm:status-404() diff --git a/webapp/lsp-manager/views/layout.htm b/webapp/lsp-manager/views/layout.htm index f33c025..a7c8160 100644 --- a/webapp/lsp-manager/views/layout.htm +++ b/webapp/lsp-manager/views/layout.htm @@ -17,7 +17,7 @@ "selfRequestsOnly": false }' /> - MDUI + LSP manager @@ -45,7 +45,7 @@