Intellisense suggests the parameter that I'm writing in functions declared using name = function()

https://gfycat.com/RevolvingGrayEel

Intellisense suggests the parameter that I’m writing when typing parameter names in functions declared using ___ = function()

This seems to happen every time. I would expect it to not suggest what I’m writing to me.

Typing within the parentheses of the following code will produce the bug:

local t = {
	exampleFunction = function()
		
	end
}

This one works too:

exampleFunction = function()
	
end

This bug happens on www/production. Version 0.332.0.192405 on Windows 10.

I think this bug started happening recently. I didn’t notice it before, but it’s also not the sort of major bug I’d notice easily.

This does not happen with normal function definitions. I think this is happening because it looks like I’m trying to type a value for exampleFunction. That is, it acts as if I’m typing exampleFunction = so it tries to suggest things to me for exampleFunction’s value.

1 Like

can confirm I also experience this but only when the function is global (I.e not local)

local thing = function(hello)
end

This won’t produce the weird bug, but

thing = function (hello)
end

will produce the bug. Strange. haven’t noticed it before and I often use this format for functions, but generally they’re local.

Edit:
The

local thing = function(hello)
end

does now produce the same result. Not sure if I just missed it before, but have now come across this too.