summaryrefslogtreecommitdiff
path: root/script/core/completion
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-12-06 20:37:24 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-12-06 20:37:24 +0800
commit29b0c7064b1a0d623867c1136b84e5f1b5038f9a (patch)
tree6d914d02c11d22d777d82fdd803e529ebce27507 /script/core/completion
parent9471213c956223fc9746d77b2082cd970c6617f8 (diff)
downloadlua-language-server-29b0c7064b1a0d623867c1136b84e5f1b5038f9a.zip
fix #842
Diffstat (limited to 'script/core/completion')
-rw-r--r--script/core/completion/completion.lua14
1 files changed, 0 insertions, 14 deletions
diff --git a/script/core/completion/completion.lua b/script/core/completion/completion.lua
index ba2b0efc..cb2ce8dd 100644
--- a/script/core/completion/completion.lua
+++ b/script/core/completion/completion.lua
@@ -1354,20 +1354,6 @@ local function getCallEnumsAndFuncs(source, index, oop, call)
end
end
if source.type == 'doc.type.function' then
- --[[
- always use literal index, that is:
- ```
- ---@class Class
- ---@field f(x: number, y: boolean)
- local c
-
- c.f(1, true) -- correct
- c:f(1, true) -- also correct
- ```
- --]]
- if oop then
- index = index - 1
- end
local arg = source.args[index]
if arg and arg.extends then
return pushCallEnumsAndFuncs(vm.getDefs(arg.extends))