SimpleComplete | General scripting plugin

It is most likely just conflicting with custom function comments, try turning itoff

Now it works! Thanks!

1 Like

Sorry for another post, but is it possible to make it so it can show the docstring in the hovering when a function is added to the code?
image
It looks weird like this.

1 Like

Hi, unfortunately I don’t really know how to do this as it isn’t a field for the return type for ScriptEditorService:RegisterAutocompleteCallback() :confused:

There is the documentation field, and that’s what i use for variables and table members and such. But afaik I can’t edit the function docstring after it has been autocompleted. Sorry :frowning:

Aw man… I wanted that to happen… Okay then :frowning:

1 Like

Update 11:

  • Removed the use of the config instance in favor of using command lines to set plugin setting values
    Example:
    --sc set: ServiceShorthand; @SYMBOL


    Currently the only usable names are ServiceShorthand, ModuleAncestors and ModuleAncestorTag
    There is also the get command:

    Syntax:
    --sc @COMMANDNAME: @KEY; @VALUE...

  • You can now tag objects to add them to the module ancestors list. The default value is SC_Ancestor however you can edit this via the command line

1 Like

You may like this new update! //30charlimit//

1 Like

do you understand how REVOLUTIONARY this is despite being so simple

no more button clutter for scripting plugins that want to have settings

2 Likes

small changes you should probably make

  • add priority to autocomplete callbacks created by SimpleComplete (make them appear at the top of the autocomplete list)

  • maybe fix setting the shorthand to an empty string
    e.g.

    –sc set: ServiceShorthand; “”
    ServiceShorthand successfully set to “”“”!

  • possibly add require-by-string support with sibling/use shortest path modes?

  • when reverting an import with CTRL + Z, it should immediately revert to before you triggered the autocomplete callback, e.g instead of

ReplicatedStorage

it would probably just be

rep

Ideally you can just like reverse the import entirely including the text used to trigger it, but that probably isn’t possible.


when autosorting gets added this is gonna be THE scripting plugin

1 Like

AGAIN SORRY FOR ANOTHER POST! BUT:


This happens when I import something with spaces, such as

ReplicatedStorage.exe_storage.tools.Building Tools.Vendor.Roact.PropMarkers.Ref

Honestly strange!

1 Like

Hi, currently I dont hace a way to detect names with spaces and make them [“”] instead of ., will be fixing this

Hi, all of this is extremely feasible so i will definitely be inplementing them. Probably will push all of them at once in update 12

1 Like

just adding on that you should make auto-imports work in the command bar (if possible) since the plugin currently breaks command bar usage when trying to use a service

also replace selectionservice with selection lol

1 Like

Setting to nil works btw

This feature was in when i put in commands, just forgot to mention it

1 Like

it’s intentional?

Yes it is //3-charlimitttttt//

1 Like

Update 12:

  • Shortest path resolving now fixed, this feature can be toggled via --sc set: FindShortestPath; true | false in the command line

  • Instance names with invalid symbols (anything other than “_”) are now corrected (If the path has invalid symbols, it is turned into a computed access)
    image

  • Newlines before every import block
    image

  • Builtin directives are now autocompleted, not just the SimpleComplete ones

  • Imports are now automatically sorted thru the --?import-sort directive, this also has a global setting which you can set via --sc set: ImportSort; descending | ascending | off


    (NOTE: Sorting and importing are done seperately, so there may be a little flickering inbetween)

  • Implemented heavy caching with module auto import suggestions, reducing autocomplete resolve time from ~0.05s to ~0.0003s

  • Fixed SC directives not parsing correctly (FOR THE FINAL TIME)

Also i decided to keep SimpleComplete autocomplete priority low cuz ion like it overriding my variables n stuff :V

2 Likes

The next few patches will focus on optimizing the plugin since everything works now, altho the resolve time is pretty low it still can be better

1 Like

Could it be made a setting or would that not work?

not working for me :thinking:

I found an issue where it spawns an extra )

for an example, import ReplicatedStorage, then AnalyticsService it literally happened in your example code lmao

1 Like

Hi, try downloading the latest version, fixed all the problems (fuck off by 1 errors :sob: )

Rn im focusing on optimizing isInNonImportContext, it’s slow as hell for large files and uses multiple loops despite being called alot :confused:

1 Like