It is most likely just conflicting with custom function comments, try turning itoff
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?
It looks weird like this.
Hi, unfortunately I don’t really know how to do this as it isn’t a field for the return type for ScriptEditorService:RegisterAutocompleteCallback()
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
Aw man… I wanted that to happen… Okay then
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 areServiceShorthand
,ModuleAncestors
andModuleAncestorTag
There is also theget
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
You may like this new update! //30charlimit//
do you understand how REVOLUTIONARY this is despite being so simple
no more button clutter for scripting plugins that want to have settings
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.
-
leave a space in between directives, auto-imported services, and auto-imported modules
-
fix relative requiring (use shortest path) for module auto-imports
[PLUGIN] SimpleComplete | Simple autocompletion plugin with table member docstrings, variable docstrings, module & service auto imports and more! - #19 by athar_adv
-
I noticed you could add autocomplete to comments, you should add autocomplete for comment directives upon typing --!
when autosorting gets added this is gonna be THE scripting plugin
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!
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
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
it’s intentional?
Yes it is //3-charlimitttttt//
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)
-
Newlines before every import block
-
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
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
Could it be made a setting or would that not work?
not working for me
I found an issue where it spawns an extra )
for an example, import ReplicatedStorage, then AnalyticsService it literally happened in your example code lmao
Hi, try downloading the latest version, fixed all the problems (fuck off by 1 errors )
Rn im focusing on optimizing isInNonImportContext
, it’s slow as hell for large files and uses multiple loops despite being called alot