Studio IDE - Descriptor bug inside of global table functions with callbacks

This is a mouthful. When attempting to call a local function or an instance method that includes a descriptor inside of a callback within a function call located within a global table, you get the descriptor for the global table function call lingering around the descriptor of the instance method.

image
^ Cursor is inside of a function call

image
^ Cursor is outside of a function call

image
^ Cursor is within the ‘IsAncestorOf’ text

image
^ again, this is fine though

image
^ inside of coroutine.create

image
^ inside of table.sort

Repro steps:

  1. Create a callback with coroutine.wrap, create, etc
  2. Call an instance method that has an autocomplete descriptor for it (as shown above)
  3. While the descriptor for the function/method is showing, use your left/right arrow keys to traverse your line of code
  4. Observe the global function descriptor pedantically showing itself

The bug does not seem to replicate in global functions such as spawn or delay - only those functions located within a global table.

I’m sure this is extremely low priority but it’s very off-putting; enough so for me to make this report at least.

1 Like

Thanks for the report! We’ve filed a ticket to our internal database and we’ll follow up when we have an update for you.

3 Likes