Skip to content

Commit 9e57cf3

Browse files
committed
fix tests
1 parent 625f5be commit 9e57cf3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

script/parser/luadoc.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ local docSwitch = util.switch()
11941194
if not result.name then
11951195
pushWarning {
11961196
type = 'LUADOC_MISS_SEE_NAME',
1197-
start = getStart(),
1197+
start = getFinish(),
11981198
finish = getFinish(),
11991199
}
12001200
return nil

test/completion/common.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3973,5 +3973,10 @@ TEST [[
39733973
{
39743974
label = 'ABCD',
39753975
kind = define.CompletionItemKind.Class,
3976+
textEdit = {
3977+
newText = 'ABCD',
3978+
start = 20008,
3979+
finish = 20012,
3980+
}
39763981
},
39773982
}

0 commit comments

Comments
 (0)