LuaLS / LuaLS/lua-language-server
requiring file with multiple|tuple return
Open
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 4.4k
- Forks
- 442
- PR merge metrics
- No merged PRs in 30d
Description
Zero-K uses multiple|tuple return e.g.
drone_defs.lua
......
return carrierDefs, thingsWhichAreDrones, unitRulesCarrierDefs
--carrierDefs is correct
--thingsWhichAreDrones and unitRulesCarrierDefs are unknow
local carrierDefs, thingsWhichAreDrones, unitRulesCarrierDefs = VFS.Include("LuaRules/Configs/drone_defs.lua")
but in default settings LuaLS only detect the first return value and left others unknow.
Can you make a setting to enable it?
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 reproducing the issue with drone_defs.lua and the VFS.Include call shown in the report, checking how LuaLS handles the three returned values. Trace the require/include analysis entry point and identify the relevant setting path; done means the second and third assigned values are recognized without breaking the existing first return value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100