summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
authorjharajeev55 <jharajeev55@gmail.com>2023-03-02 10:26:33 +0530
committerjharajeev55 <jharajeev55@gmail.com>2023-03-02 10:26:33 +0530
commite5a99c3cdd7d79347bb6c3d2cfc474ddda106717 (patch)
tree2362d74361e2a50f81b3d98a849764e1c97808ee /script/vm
parent677fac00286628af29a1a24c11a0d6de7d8afe0d (diff)
downloadlua-language-server-e5a99c3cdd7d79347bb6c3d2cfc474ddda106717.zip
Array of a class type does not get completion #1940
https: //github.com/LuaLS/lua-language-server/issues/1940 Co-Authored-By: esarver <4965633+esarver@users.noreply.github.com>
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/compiler.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index 97d947c9..b97517ba 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -1908,10 +1908,9 @@ function vm.compileNode(source)
---@cast source parser.object
vm.setNode(source, vm.createNode(), true)
- if not vm.compileByGlobal(source) then
- vm.compileByVariable(source)
- compileByNode(source)
- end
+ vm.compileByGlobal(source)
+ vm.compileByVariable(source)
+ compileByNode(source)
compileByParentNode(source)
matchCall(source)