You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project I'm adding new package.loaders which means I'm able to import things that are not real files.
localbindings=require"bindings.core" -- This is not a real file
Any path starting with bindings. is treated differently. Is there a way to instruct the Lua Language Server to treat those specific requires in a special way and have them returning the right type annotation?
I'd like to not specify the @type every time I'm requiring these special packages.
By design there should be --@module "xxx.fff", It may not be in effect for luals
I'm not sure what the module annotation simulates tho. ( I saw the example but still a bit lost about it ) I need to tell what's the type returned by the module. Can that be done with --@module
In my project I'm adding new package.loaders which means I'm able to import things that are not real files.
Any path starting with
bindings.
is treated differently. Is there a way to instruct the Lua Language Server to treat those specific requires in a special way and have them returning the right type annotation?I'd like to not specify the @type every time I'm requiring these special packages.
If there's a valid solution I'd need it to work outside of VS code. I'm running LuaLS as a standalone check.
The text was updated successfully, but these errors were encountered: