LuaLS / LuaLS/lua-language-server

[love-api] many callback functions are missing

Open
#1,779 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Lua
Stars
4.4k
Forks
442
PR merge metrics
No merged PRs in 30d

Description

These functions are undefined:

I really don't understand why the api has all these aliases, 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.