Intellisense doesn't pick up variables within resume/create coroutine scope

When you initialize a variable within a resume/create coroutine scope, the variables aren’t picked up by intellisense, vs variables outside the scope of the resume/create are picked up by intellisense. This bug’s been around for a while, but it slipped my mind for a bit.

To reproduce, simply set up a resume/create coroutine, initialize a new variable, and type out the variable name into the print; it wont show up in intellisense.

coroutine.resume(coroutine.create(function()
	local IntellisenseDoesntSeeMe = 1;
	print(Intel);
end));

Screenshots showing the bug:
intellisense_bug1
intellisense_bug2

Variables initialized outside the resume/create scope’s picked up by intellisense:

Interestingly enough, variables initialized within a wrap or spawn scope’s picked up intellisense.


Thank you for reading.

4 Likes

Looks like upvalues are captured but not locals within the scope not just in coroutines.

I am using studio version 0.442.3.409454 on windows 10

2 Likes

Thanks for the report! We’ve filed this internally and we’ll follow up here when we have an update for you.

2 Likes