The descending_length and ascending_length options for ImportSort doesn’t seem to work for me.
local ReplicatedFirst = game:GetService("ReplicatedFirst")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local ServerStorage = game:GetService("ServerStorage")
(descending_length)
Maybe it isn’t supposed to work with services? In that case I definitely think you should add support for that.
I just want to be able to have it not type that variable name when you import any service, module or other instance. Just make it a universal toggle for automatically writing that variable name.
So like lets say you type in !pl and press enter to autocomplete it to Players, do you want the place where you typed !pl to be replaced with blank and then define the service at the top? Cuz if so I can implement that pretty easily yea
Oh wait maybe you misunderstood me with the SelectionImport feature. It should import just like when you auto-import a module or service, just with the selected instance instead of the selected autocomplete suggestion. It should not simply add it to the autocomplete suggestions list.
Additionally it should serve as a way to quickly create variables for other instances like folders etc.
The import part of it is basically the same as autocompletion import, just with the bonus that it supports normal instances on top of modules and services.
Fixed module transform being used when a module auto-import defines a service instead of the service one
Remade SelectionImport so that it imports all selected Instances when you type in the shorthand
Fixed Cursor.findVariableImportPosition() to correctly get an import position between services and modules
NOTE: Currently non-require paths aren’t handled by UseSharedPathVars
NOTE 2: I’m still trying to get the spacing using Cursor.findVariableImportPosition() right so uh yeah don’t be surprised when your variables are social distancing
Fixed a findSharedPath matching issue related to the computed access matcher which led to incorrect shared paths for variables which shared the same subpath
Fixed shorthands not working when mixed with other symbols (like game:GetService(!p))