LuaLS / LuaLS/lua-language-server
autocomplete for table.insert?
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Lua
- Stars
- 4.4k
- Forks
- 442
- PR merge metrics
- No merged PRs in 30d
Description
When building an array of known type, the language server gives me a nice suggestion:

However, when using table.insert I don't get this suggestion:

Related: https://github.com/sumneko/lua-language-server/discussions/1631
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
Reproduce the two completion cases shown in the issue and compare the missing table.insert suggestion with the working known-array suggestion. Read the related discussion at sumneko/lua-language-server#1631 for context; done means table.insert receives the expected type-aware autocomplete suggestion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100