LuaLS / LuaLS/lua-language-server
[love-api] many callback functions are missing
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 4.4k
- Forks
- 442
- PR merge metrics
- No merged PRs in 30d
Description
These functions are undefined:
- [love.load](https://www.love2d.org/wiki/love.load)
- [love.quit](https://www.love2d.org/wiki/love.quit)
- [love.errorhandler](https://www.love2d.org/wiki/love.errorhandler)
- [love.lowmemory](https://www.love2d.org/wiki/love.lowmemory)
- [love.threaderror](https://www.love2d.org/wiki/love.threaderror)
- [love.keyreleased](https://www.love2d.org/wiki/love.keyreleased)
- [love.textedited](https://www.love2d.org/wiki/love.textedited)
- [love.textinput](https://www.love2d.org/wiki/love.textinput)
- [other](https://www.love2d.org/wiki/love) `mouse`, `joystick` and `touch` related...
I really don't understand why the api [has all these aliases](https://github.com/sumneko/lua-language-server/blob/master/meta/3rd/love2d/library/love.lua), but in vscode these functions appear as undefined 🤷.
Maybe `@alias` is a wrong way to define class fields or is the total number of possible class fields limited?
For some reason, some of them show up, but most do not!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting meta/3rd/love2d/library/love.lua and compare its aliases with the listed LÖVE callbacks that appear undefined in VS Code. Reproduce the missing suggestions for callbacks such as love.load, love.quit, and love.textinput, then trace how those definitions are exposed. Done means the listed callback functions are no longer reported as undefined.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100