LuaLS / LuaLS/lua-language-server
requiring file with multiple|tuple return
Offen
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Lua
- Sterne
- 4.4k
- Forks
- 442
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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?
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- lua
- Bereich
- devtools
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100