We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4588e9 commit 7baf51cCopy full SHA for 7baf51c
script/vm/getDocs.lua
@@ -11,6 +11,9 @@ local noder = require 'core.noder'
11
---@param name? string
12
---@return parser.guide.object[]
13
function vm.getDocDefines(uri, name)
14
+ if type(name) ~= 'string' then
15
+ return {}
16
+ end
17
local cache = vm.getCache 'getDocDefines'
18
if cache[name] then
19
return cache[name]
0 commit comments