[fix] position off by one
This commit is contained in:
parent
1787a8e31f
commit
dc1b888a3b
2 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ declare function lsp-diags:parse-error($text as xs:string, $xml as element(ERROR
|
|||
as map(*)*{
|
||||
|
||||
if(string-length($text) gt 0)
|
||||
then let $last:= max((0,string-length($text)-1))
|
||||
then let $last:= string-length($text)
|
||||
let $dmesg:=$xml/string()=>trace("parse-error")
|
||||
let $dmesg:=translate($dmesg," ",";")
|
||||
let $b:=number($xml/@b)-1
|
||||
|
|
|
@ -75,7 +75,7 @@ function connect() {
|
|||
const doc = view.state.doc.toString();
|
||||
const state = lsp.createEditorState(doc, [...lsp.baseExts, extLsp, extLint,
|
||||
lsp.debouncedChangeListener({
|
||||
delay: 5000,
|
||||
delay: 750,
|
||||
onChange: (content, state) => {
|
||||
console.log('Debounced change detected:'+content);
|
||||
client.sync();
|
||||
|
|
Loading…
Add table
Reference in a new issue