diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-12-08 19:54:23 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-12-08 19:54:23 +0800 |
commit | f3ad9225ae04dae2f9ee295709fc623587b1b4e8 (patch) | |
tree | 5ce55049395ba601ef403bf0a36663762314e0a2 /script/vm/global.lua | |
parent | d4e35887aba9ed3794d5694a19b976eed5a68269 (diff) | |
download | lua-language-server-f3ad9225ae04dae2f9ee295709fc623587b1b4e8.zip |
cleanup
Diffstat (limited to 'script/vm/global.lua')
-rw-r--r-- | script/vm/global.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/script/vm/global.lua b/script/vm/global.lua index 64bb0e9a..37b54349 100644 --- a/script/vm/global.lua +++ b/script/vm/global.lua @@ -9,7 +9,6 @@ local vm = require 'vm.vm' ---@class vm.global.link ---@field gets parser.object[] ---@field sets parser.object[] ----@field hasGet boolean? ---@class vm.global ---@field links table<uri, vm.global.link> @@ -35,11 +34,10 @@ end ---@param uri uri ---@param source parser.object function mt:addGet(uri, source) - local link = self.links[uri] if PREVIEW then - link.hasGet = true return end + local link = self.links[uri] if not link.gets then link.gets = {} end @@ -98,7 +96,6 @@ function mt:getAllSets() return cache end ----@async ---@return parser.object[] function mt:getGets(suri) if not self.getsCache then |