"function (anonymous autofilled)" occuring in wrong context

After writing “function” inside a connection and adding “()”, the autocomplete inside of the parenthesis will give “function (anonymous autocomplete)”. This is useful, but when you press enter it writes “function([autocomplete arguments])”. This is not desired in this context and instead should only add the arguments.

System Information:
OS: Windows 11 Pro 24H2 10.0.26100 Build 26100
CPU: AMD Ryzen 5 5600X 6-Core @ 3.70 GHz
GPU: Nvidia RTX 3070
RAM: 32.0 GB

Running Roblox Studio Version 0.651.0.6510833 (64bit) at the time of this bug report.

Expected behavior

Arguments should be added without being wrapped inside of “function” because we have already written that.

I wanted to add something onto this which would be more so a feature request, but adding types to connections which have types inferred should make the autocomplete ignore adding them. I understand some may like this, although it is just redundant and serves no purpose except for the programmer to know the types while reading it. This could be a setting that can be enabled and disabled in the Script Editor section.

Can I get any reason as to why this bug report was closed - it’s a bit anxiety inducing to just see it be closed without any message notifying me the reason.

Thanks for your report :smile:

We will look at addressing this case. I have reopened the ticket.

1 Like