[fix] completion detail always string
This commit is contained in:
parent
24082ad97b
commit
38a1909570
1 changed files with 2 additions and 2 deletions
|
@ -19,8 +19,8 @@ declare function ctx:map($fn as element(fos:function))
|
||||||
$fn!map{
|
$fn!map{
|
||||||
"label":string(@name),
|
"label":string(@name),
|
||||||
"kind": 3,
|
"kind": 3,
|
||||||
"detail":ctx:summary(.),
|
"detail":string($fn/fos:summary/*),
|
||||||
"documentation":`<a href="{ $ctx:doclink }{ string(@name) }" target="_blank">spec</a>`
|
"documentation":`{ ctx:summary(.) } <a href="{ $ctx:doclink }{ string(@name) }" target="_blank">Spec</a>`
|
||||||
!lspt:MarkupContent("markdown",.)
|
!lspt:MarkupContent("markdown",.)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue