[add] apply-changes

This commit is contained in:
Andy Bunce 2025-08-07 12:08:05 +01:00
parent cffeb0aa45
commit 08051d5281
4 changed files with 84 additions and 37 deletions

View file

@ -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 :)