diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-17 19:34:37 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-17 19:34:37 +0800 |
commit | 9978771a0f377c6f7663324e96e40f985fb99eb4 (patch) | |
tree | 11d3096fdea4d6f8ca7e9458198c859adaf72618 /script/vm | |
parent | 2862d7cd292927b608523f5b8ede49c227e7065c (diff) | |
download | lua-language-server-9978771a0f377c6f7663324e96e40f985fb99eb4.zip |
improve
Diffstat (limited to 'script/vm')
-rw-r--r-- | script/vm/getDocs.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/vm/getDocs.lua b/script/vm/getDocs.lua index 16b82278..a17a89d2 100644 --- a/script/vm/getDocs.lua +++ b/script/vm/getDocs.lua @@ -10,12 +10,13 @@ local noder = require 'core.noder' ---@param name? string ---@return parser.guide.object[] function vm.getDocDefines(name) + name = name or '' local cache = vm.getCache 'getDocDefines' if cache[name] then return cache[name] end local results = {} - local id = 'def:dn:' .. (name or '') + local id = 'def:dn:' .. name for node in collector.each(id) do if node.sources then for _, source in ipairs(node.sources) do |