LuaLS / LuaLS/lua-language-server
Allow defining the size of arrays
Open
Nobody has claimed this yet.
enhancement
feat/LuaCats Annotations
- Dominant language
- Lua
- Stars
- 4.4k
- Forks
- 442
- PR merge metrics
- No merged PRs in 30d
Description
Feature request
I'd want a way to define the size of arrays. I propose the following:
---@type string[3]
local arr = {}
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 tracing how the language server parses and represents type annotations, then determine where the proposed string[3] array syntax would be handled. The issue names no files or tests; done should include defined array sizes being accepted and their expected effects covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100