[NOTE]: This plugin does not appear in your toolbar, you interact with it via the command bar. See the documentation for more information.
SimpleComplete is a relatively simple plugin which allows you to add docstrings to variables, table members and functions, add tags/attributes for your docstrings, as well as have shorthands for importing any of Roblox’s services and your own modules and instances.
Run this code in the command bar to insert the plugin into your game
Essentially, there are 2 main things inside the docstrings: Tags and Attributes
These work similarly to Instance tags and attributes, tags are simply names and attributes have both a name and a value.
For example, <deprecated> is a tag, while <kind>: $Function$ is an attribute ($…$ is used to define strings)
These can be in any order inside the docstring, for example:
But for defining variable/table member docstrings, you need a special <docstring> tag at the start of the comment, like this:
--[[<docstring>
]]
on the top of it. This is as to not conflict with any existing comments
It does not work when writing inside strings/comments (multiline and single line) and also does not work when you have already defined the service names as their own variables
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)
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)