diff --git a/.gitignore b/.gitignore index dd950c9..0174ac0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ data/ node_modules/ +webapp/static/clients/beercss-3.12.3/ \ No newline at end of file diff --git a/webapp/lsp/documentSymbols.xqm b/webapp/lsp/documentSymbols.xqm index 3458f1f..31579ea 100644 --- a/webapp/lsp/documentSymbols.xqm +++ b/webapp/lsp/documentSymbols.xqm @@ -2,6 +2,7 @@ xquery version '4.0'; (:~ Symbols from XQuery source file :) module namespace syms="lsp/symbols"; import module namespace pos="lsp/position" at "position.xqm"; + declare type syms:SymbolKind as xs:integer; declare type syms:SymbolTag as xs:string; @@ -35,24 +36,23 @@ declare variable $syms:SymbolKindMap :={ }; declare record syms:DocumentSymbol( + (: The name of this symbol. Will be displayed in the user interface and -therefore must not be an empty string or a string only consisting of white spaces. -:) +therefore must not be an empty string or a string only consisting of white spaces. :) name as xs:string, (: The kind of this symbol. :) kind as syms:SymbolKind, -(: - * The range enclosing this symbol not including leading/trailing whitespace - * but everything else like comments. This information is typically used to - * determine if the clients cursor is inside the symbol to reveal it in the - * UI. :) +(: The range enclosing this symbol not including leading/trailing whitespace + but everything else like comments. This information is typically used to + determine if the clients cursor is inside the symbol to reveal it in the UI. :) range as pos:Range, (:The range that should be selected and revealed when this symbol is being - * picked, e.g. the name of a function. Must be contained by the `range`. :) - selectionRange as pos:Range, + picked, e.g. the name of a function. Must be contained by the `range`. :) + selectionRange as pos:Range, + (: More detail for this symbol, e.g the signature of a function.:) detail? as xs:string, diff --git a/webapp/lsp/position.xqm b/webapp/lsp/position.xqm index ce34391..d6064e7 100644 --- a/webapp/lsp/position.xqm +++ b/webapp/lsp/position.xqm @@ -100,5 +100,5 @@ as xs:string{ (:~ full range for $text :) declare function pos:full-range($text as xs:string) as pos:Range{ - pos:Range(pos:toPosition($text,0), pos:toPosition($text, string-length($text)-1)) + pos:Range(pos:toPosition($text,0), pos:toPosition($text, string-length($text))) };