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.
^ Cursor is inside of a function call
^ Cursor is outside of a function call
^ Cursor is within the ‘IsAncestorOf’ text
^ again, this is fine though
^ inside of coroutine.create
^ inside of table.sort
Repro steps:
- Create a callback with coroutine.wrap, create, etc
- Call an instance method that has an autocomplete descriptor for it (as shown above)
- While the descriptor for the function/method is showing, use your left/right arrow keys to traverse your line of code
- 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.