[add] apply-changes
This commit is contained in:
parent
cffeb0aa45
commit
08051d5281
4 changed files with 84 additions and 37 deletions
|
|
@ -1 +1,14 @@
|
|||
json:doc("sample.msg/didChange/client2.json",{"format":"w3"})
|
||||
import module namespace pos="lsp/position" at "../webapp/lsp/position.xqm";
|
||||
|
||||
declare variable $msg:=json:doc("sample.msg/didChange/client2.json",{"format":"w3"});
|
||||
declare variable $text:=`12345678
|
||||
bbbbb
|
||||
cccccc`;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
(: return pos:resolvePosition($text,$p) :)
|
||||
pos:apply-changes($text,$msg?params?contentChanges)
|
||||
(: $msg?params?contentChanges :)
|
||||
Loading…
Add table
Add a link
Reference in a new issue