love2d icon indicating copy to clipboard operation
love2d copied to clipboard

No types for `love.update`, `love.draw`

Open musjj opened this issue 1 year ago • 0 comments

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)):

Image

But I can see completions for other functions:

Image

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.

musjj avatar Mar 26 '25 13:03 musjj