I’d like to require modules/extensions I use in a “main.script”, and set them as global variables, so I can eventually require new extensions without having to update all my scripts:
The problem is that the code auto-completion (pretty convenient, particularly when you start using a library) doesn’t work anymore in that case. ==> (in player.script)
But the extensions in question still work as intended (I just don’t have the auto-completion).
(+ Everything works fine when requiring in each script as local variables)
I don’t know if this is a bug, a feature request, or just that I don’t know how to do something… but is there a way to make the auto-complete work when requiring extensions from another script (as global variables)?
Note: same when requiring a Lua module containing functions (auto-completion working in the script where the “require” is made, not in the other scripts)
But they seem to be global by default, so it makes sense.