False negative error Function X expects 0 parameters, but received 1
when using Unity's runner.AddFunction<...>
#48
Labels
bug
Something isn't working
What is the current behavior?
When defining custom functions in Unity, that take an instance method or lambda, the vscode extension seems to parse these as having 0 expected arguments instead of what is in the typehint(s).
Please provide the steps to reproduce, and if possible a minimal demo of the problem:
Register a 1-argument custom function using the following:
or a more roundabout:
Then in yarn:
Observe the error in the Problem panel:
The behavior previously worked in vscode extension version 2.2.114 and produces the error in 2.2.115 through 2.4.4
What is the expected behavior?
No error is observed in the Problems panel
Please tell us about your environment:
Other information
The text was updated successfully, but these errors were encountered: