Pressing Enter while a Code Example is loading closes the Example and doesn't make the text appear

Reproduction Steps

Type in a script, and when trying to type a function such as GetChildren, FindFirstChild, etc., press enter while the code example popup is loading. The example will close, and if you try to press enter again, a new line will appear instead of the text appearing.

The first time I press enter in this gif, you can see the Code Example close since it wasn’t done loading the preview fully, so I waited for it to reappear before pressing enter again, making FindFirstChild appear.

42190760280bf6651347c713ab864d83

Note: This MAY only happen in large scripts or modules that require other modules, as it cannot be replicated in shorter scripts I think

Expected Behavior

Pressing enter to make the suggested function appear should not be limited by whether the code example for that function is loaded or not, as it slows down typing in the script editor by a lot.

Actual Behavior

The code example closes, and I’m forced to wait a few seconds for it to pop back up before I press enter, which means its usually just faster to type the function myself instead of using the predictive text feature.

Issue Area: Studio
Issue Type: Other
Impact: Moderate
Frequency: Constantly

7 Likes

Thanks for the report! We’ll follow up when we have an update for you.

2 Likes

Hi,

After reviewing this issue, this is actually a feature request. As we have a keyboard shortcut for reinvoking the autocomplete (Cmd/Ctrl + .) we would need a similar shortcut for reinvoking the help / example.

Note that now Cmd / Ctrl + F12 opens the help in a browser.

We also have a tracking ticket for ongoing performance improvements which would be the other side of the issue: this happens when the performance is not sufficient.