Script Editor API - Full Release!

Try out my new Roact Complete plugin (Full code completion support for Roact stuff) using these APIs for a taste of what they can do!

19 Likes

when will this transform from script editor to vscode 2.0

5 Likes

RegisterAutocomplete is probably the most powerful API I’ve seen in a while

I was messing around with it when it still could only exist with one callback but its insane how powerful it really is

12 Likes

I’ve already got a few QOL plugin ideas with this new API. Can’t wait to see what other developers will make with this.

4 Likes

Excellent addition, I’m sure some pretty neat plugins will be made as a result.

4 Likes

Got something going now.

This plugin allows you to insert quick code snippets such as creating a part or doing some ray casting. Eventually I will add a feature to make custom code snippets. Maybe even edit the default snippets too.

2 Likes

Wow this update is amazing!

Thank you Roblox! Continue to offer us good updates like this one!

1 Like

This is like, really interesting.

1 Like

Epic update! I can see this being used for custom editors and more customized auto-complete for user-made frameworks! Can’t wait to see what’s next! :smiley:

4 Likes

Those seem pretty important! I will look into using it in the future!

3 Likes

Can the learnMore token in the autocomplete macros be allowed to go to github.io and github.com. For example: if I wanted to provide a help document for Roact.createElement, i’d set the Learn More link to API Reference - Roact Documentation

It would also be nice if child tokens in a struct had their parent struct referenced by name or a cyclic reference

7 Likes

I have a quick request, could you add a function for retrieving a callback from registered autocompletes?

Maybe: :GetRegisteredAutocompleteCallback("register_name")

I’m mainly asking this because you have no real way to check for existing registered autocompletes.

I know I can have my own method of tracking existing registers but I feel like it’ll be safer to be able to directly reference where these registers are being held for more accuracy.

Atm I’m just blind deregistering my callback by wrapping it in an xpcall.

3 Likes

Amazing update! This will bring alot of cool plugins to the platform (Like the one I am making :slight_smile:)!

2 Likes

LuaUtilities - Your friendly autocomplete manager.
I’ve made a new plugin!
This plugin includes a UI Which can Create and Manage custom autocompletions!
It features the use of the script editor for autocompletions, using a seperate script window for each!

It comes with 9 standalone autocompletions. Pre-Coded for you. But of course, You are free to edit these and even create new ones using the plugin.
They are:

  • ValueToIndex → Similar to table.find
  • debugPart → Code for a simple debug part.
  • randomChance → Code for generating percentage-based randomness
  • Variables → Code for essential variables like ReplicatedStorage.Events
  • hitBoxWhitelist → Creates an OverlapAPI hitbox with whitelist
  • hitBoxBlacklist → ^
  • rs → ReplicatedStorage
  • hitBox → OverlapAPI Hitbox
  • rayCast

For the future, I intend to add Game-Specific autocomplete and knit-integration.

Enjoy, Many Thanks, 3gData.

3 Likes

This is pretty good!
I do have a suggestion, could you add a unique tag at the beginning of the autocomplete?

“LuaUtils - ScriptName”
image
(Ignore the Snippets! autocomplete, from the plugin I’m working on.)

But the idea is that it helps separate what’s plugin and what’s native to the editor.

2 Likes

I could do this, But it could interfere with the overall Ease of use, for example having to type LuaUtils.

Maybe I’ll add something like LU, Or even allowing the prefix to be set manually, If any.

2 Likes

As far as I’m aware there is no keyword that starts with Lua within’ the editor.

You could avoid having to type the whole name just by typing Lua and then arrow keys + enter to select.

If a person is going the arrow keys + enter method you could add the whole name LuaUtils

2 Likes

since everyone else is linking their plugins here

I’ve finished my plugin for this, you can provide a modulescript with configs and then my plugin will match it against autocomplete suggestions and override properties on the autocomplete;

Example:


Plugin:

Read More:

3 Likes

sooo anyways heres my new plugin!

exactly as the name implies it autocompletes the service name and it kindly adds the Get Service equivelent to the top of the script

Examples:
https://gyazo.com/31a44161064f8ff4801cbf6c766e0055
https://gyazo.com/1e2b1ded99c1fa3d88bf4cfa8fa591b5
https://gyazo.com/9b00a0c4134d83562823664a0d316469

3 Likes

Ever since this update I’ve felt that the autocomplete has been a bit laggy when typing fast, is it just me or anyone else felt that?

2 Likes