Patch 6.1:
- Added the path in the documentation for modules
Made it so that module path refreshes are done incrementally instead of clearing the whole table and rebuilding it, this considerably improved performance for module auto imports
Improved the new isInNonImportContext
function to return true when inside multiline comments/strings (Also works for scoped multiline comments)
Added “script” and “.Parent” as usable within the --?module-ancestors {}
directive (for example, you can now do --?module-ancestors {script.Parent}
)
Service imports no longer appear in function parameter lists
--?
directives are now autocompleted:
Directives no longer apply when used within strings
local a, b, c
Made it so that module auto imports now use game:GetService(name)
instead of game.name
when using services (if a variable has not been declared as it), but if a variable HAS been declared as the service (doesn’t matter the name, just need to be declared with game:GetService()), it’ll use that instead. (This doesn’t affect script relative paths)
Name sorting coming soon!
@name
syntax (Old syntax still works for the sake of backwards compatibility)Ideally, it should probably create the variable for you and use that. The goal of this is to make it easier to stay consistent with code.
I’ll see if i can try implementing this
I also had to readd this beast of a thing because the version with guard clauses produced empty module name tables
Really cool plugin! Although I would suggest adjusting the style a bit so it would match the roblox’s autocomplete
This is most likely an issue with the isNonImportContext function which diallows imports when doing method calls, ill fix it for service shorthands
Wdym by this? ||30_char_limit||
Hi, fixed
I’m still having issues with changing it, do I have to wait for a while after I write the comment?