From e5a99c3cdd7d79347bb6c3d2cfc474ddda106717 Mon Sep 17 00:00:00 2001 From: jharajeev55 Date: Thu, 2 Mar 2023 10:26:33 +0530 Subject: 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> --- script/vm/compiler.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'script/vm/compiler.lua') 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) -- cgit v1.2.3