Skip to content

Commit 6c47a19

Browse files
committed
fix diagnostic completions ending
1 parent fa2c778 commit 6c47a19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/core/completion/completion.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1925,7 +1925,7 @@ local function tryluaDocBySource(state, position, source, results)
19251925
kind = define.CompletionItemKind.Enum,
19261926
textEdit = {
19271927
start = source.start,
1928-
finish = source.start + #source.mode - 1,
1928+
finish = source.start + #source.mode,
19291929
newText = mode,
19301930
},
19311931
}
@@ -1940,7 +1940,7 @@ local function tryluaDocBySource(state, position, source, results)
19401940
kind = define.CompletionItemKind.Value,
19411941
textEdit = {
19421942
start = source.start,
1943-
finish = source.start + #source[1] - 1,
1943+
finish = source.start + #source[1],
19441944
newText = name,
19451945
},
19461946
}

0 commit comments

Comments
 (0)