diff --git a/webapp/lsp/lsp-text.xqm b/webapp/lsp/lsp-text.xqm
index b58caae..2e96949 100644
--- a/webapp/lsp/lsp-text.xqm
+++ b/webapp/lsp/lsp-text.xqm
@@ -14,7 +14,8 @@ declare variable $lsp-text:methods:=map{
"textDocument/hover": lsp-text:hover#1,
"textDocument/completion": lsp-text:completion#1,
- "textDocument/formatting" : lsp-text:format#1
+ "textDocument/formatting" : lsp-text:format#1,
+ "textDocument/documentSymbol" : lsp-text:symbols#1
};
(:~ hover :)
@@ -29,6 +30,18 @@ as map(*)
return rpc:result({"contents":$r},$json)
};
+(:~ symbols :)
+declare
+function lsp-text:symbols($json as map(*))
+as map(*)?
+{
+ let $doc:=$json?params?textDocument?uri
+ return map{
+ "jsonrpc": "2.0",
+ "id": $json?id,
+ "result":()
+ }
+};
declare
function lsp-text:completion($json as map(*))
diff --git a/webapp/static/clients/codemirror/grail.html b/webapp/static/clients/codemirror/grail.html
index 16a36d9..faac481 100644
--- a/webapp/static/clients/codemirror/grail.html
+++ b/webapp/static/clients/codemirror/grail.html
@@ -80,7 +80,7 @@
-