You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The inlay hint for the self parameter of function Class.foo displays the type of the next argument. This occurs only when the "Inlay Hint: Parameter Types" option is turned on in the vscode luau-lsp settings and the name of the first argument is self.
If you enter it manually or check its type, it will appear correctly. So it looks like this bug is only related to inlay hints.
luau-lsp version: v1.32.0
Reproduce
typeClass= {
foo: (self: Class, bar: string) -> ()
}
localClass= {} :: ClassfunctionClass.foo(self, bar) -- expected inlay hints: `function Class.foo(self: Class, bar: string)` actual result: `function Class.foo(self: string, bar)`-- do somethingend
Media
The problem
When the parameter name is not self
The actual type of wrong displayed inlay hint parameter
The text was updated successfully, but these errors were encountered:
The inlay hint for the
self
parameter of functionClass.foo
displays the type of the next argument. This occurs only when the"Inlay Hint: Parameter Types"
option is turned on in the vscode luau-lsp settings and the name of the first argument isself
.If you enter it manually or check its type, it will appear correctly. So it looks like this bug is only related to inlay hints.
luau-lsp version:
v1.32.0
Reproduce
Media
The problem
When the parameter name is not
self
The actual type of wrong displayed inlay hint parameter
The text was updated successfully, but these errors were encountered: