love2d
love2d copied to clipboard
No types for `love.update`, `love.draw`
I've installed this plugin via the VS Code plugin manager:
.vscode/settings.json
{
"Lua.workspace.library": ["${addons}/love2d/module/library"],
"Lua.runtime.version": "LuaJIT",
"Lua.runtime.special": {
"love.filesystem.load": "loadfile"
},
"Lua.workspace.checkThirdParty": false
}
And I'm still not getting any completions for the top-level functions (e.g. love.update(dt)):
But I can see completions for other functions:
I also can see that it's included in the types:
https://github.com/LuaCATS/love2d/blob/765abafe49775ba52937430e2546dfc330381d6b/library/love.lua#L319-L322
But for some reason VS Code isn't picking them up.