diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-02-23 17:56:26 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-02-23 17:56:26 +0800 |
commit | 3de3402c82c4ea46f69d0a96bea7faf1ad68ea06 (patch) | |
tree | 32827d7d1e7c0b1ecd5386cd638498176d9aa866 /script/vm/getDocs.lua | |
parent | f8e2955268708728a1f83743d0b2000d2e089539 (diff) | |
parent | b37ebceffe695defd7e7976e653ce127618614c0 (diff) | |
download | lua-language-server-3de3402c82c4ea46f69d0a96bea7faf1ad68ea06.zip |
Merge commit 'b37ebceffe695defd7e7976e653ce127618614c0' into 3.0
Diffstat (limited to 'script/vm/getDocs.lua')
-rw-r--r-- | script/vm/getDocs.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/vm/getDocs.lua b/script/vm/getDocs.lua index d13878e6..4204d785 100644 --- a/script/vm/getDocs.lua +++ b/script/vm/getDocs.lua @@ -10,6 +10,9 @@ local define = require 'proto.define' ---@param name? string ---@return parser.object[] function vm.getDocDefines(uri, name) + if type(name) ~= 'string' then + return {} + end local cache = vm.getCache 'getDocDefines' if cache[name] then return cache[name] |