Skip to content

Improve modRequire with caching and library support#528

Open
Hyperboid wants to merge 5 commits intoKristalTeam:mainfrom
Hyperboid:kristal-modRequire-enhance-take-2
Open

Improve modRequire with caching and library support#528
Hyperboid wants to merge 5 commits intoKristalTeam:mainfrom
Hyperboid:kristal-modRequire-enhance-take-2

Conversation

@Hyperboid
Copy link
Contributor

Sorry if I didn't do a good job explaining this, it's 5AM Again

Basically the caching is like package.loaded, and modRequire("libraries.mylib.thing") is the same as libRequire("mylib", "thing") but actually with some degree language server support (of course LS will get confused if lib folder name differs from ID)

Motivation: I'm tired of creating and maintaining globals.lua files to trick the language server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant