From 38a19095700649342cd1be4d1a165e5ccb79ba11 Mon Sep 17 00:00:00 2001 From: Andy Bunce Date: Sat, 11 Oct 2025 16:07:39 +0100 Subject: [PATCH] [fix] completion detail always string --- webapp/lsp/context.xqm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/lsp/context.xqm b/webapp/lsp/context.xqm index 92b1bf0..6c1dcd8 100644 --- a/webapp/lsp/context.xqm +++ b/webapp/lsp/context.xqm @@ -19,8 +19,8 @@ declare function ctx:map($fn as element(fos:function)) $fn!map{ "label":string(@name), "kind": 3, - "detail":ctx:summary(.), - "documentation":`spec` + "detail":string($fn/fos:summary/*), + "documentation":`{ ctx:summary(.) } Spec` !lspt:MarkupContent("markdown",.) }