Hi there.
I just stumbled upon this, and it looks great.
I’m interested in the autocompletion, as I was working on a pretty advanced one myself.
I have some feature requests regarding autocompletion/auto-import:
Support for [""]
.
Pretty self-explanatory, but it should be able to correctly handle and create paths that contain [""]
, like e.g. workspace["Cool module"]
.
Automatic shared path variables.
When you auto-import a module, it should scan all references, and if it finds a shared path, it should create a variable for those paths and have the module imports reference that variable.
For example:
local moduleOne = ReplicatedStorage.Modules.ModuleOne
-- After auto-importing moduleTwo:
local moduleOne = ReplicatedStorage.Modules.ModuleOne
local moduleTwo = ReplicatedStorage.Modules.ModuleTwo
-- Instead, it should do this after auto-importing moduleTwo:
local modules = ReplicatedStorage.Modules
local moduleOne = modules.ModuleOne
local moduleTwo = modules.ModuleTwo
Service ordering
When you auto-import a service, it should scan all services’ text lengths and find the perfect placement for the service, based on length, so that it forms a sort of inverse staircase.
For example:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerStorage = game:GetService("ServerStorage")
-- After auto-importing ReplicatedFirst:
local ReplicatedFirst = game:GetService("ReplicatedFirst")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerStorage = game:GetService("ServerStorage")
-- Instead, it should do this afer auto-importing ReplicatedFirst:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ReplicatedFirst = game:GetService("ReplicatedFirst")
local ServerStorage = game:GetService("ServerStorage")
It’s crucial that you use TextService to calculate the text width, and not just rely on the character count, because otherwise e.g. “iiiiiii” would be mistaken as longer than “banana” (very bad example, but you get the point I hope).
If you have any questions, let me know!