summaryrefslogtreecommitdiff
path: root/script/core/completion.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/completion.lua')
-rw-r--r--script/core/completion.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua
index 436a1689..5db4aa1b 100644
--- a/script/core/completion.lua
+++ b/script/core/completion.lua
@@ -806,8 +806,9 @@ local function checkUri(ast, text, offset, results)
if not collect[info.expect] then
collect[info.expect] = {
textEdit = {
- start = source.start + #source[2],
- finish = source.finish - #source[2],
+ start = source.start + #source[2],
+ finish = source.finish - #source[2],
+ newText = info.expect,
}
}
end
@@ -835,8 +836,9 @@ local function checkUri(ast, text, offset, results)
if not collect[path] then
collect[path] = {
textEdit = {
- start = source.start + #source[2],
- finish = source.finish - #source[2],
+ start = source.start + #source[2],
+ finish = source.finish - #source[2],
+ newText = path,
}
}
end