[add] start symbols
This commit is contained in:
parent
00aed821e1
commit
aede6dab36
3 changed files with 28 additions and 7 deletions
|
|
@ -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(*))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue