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
This makes it easier to use other people's code that also uses these annotations without finding and changing ignore globs in vscode. I think this feature should be an optional setting in vscode to respect type inference modes annotation.
The text was updated successfully, but these errors were encountered:
Whenever I open any script in VSCode, lua-lsp will show type errors regardless of the annotation or lack of annotation at the top my script. An example of where this happens is ProfileService. I can not hide or disable type checking for ProfileService with any annotation or luau-lsp's ignore globs. Roblox Studio does not show any errors for it either.
I think there is another bug related to this which is persistent type errors in the problems tab after I close the script's tab in VSCode. After I close ProfileService.lua, I expect diagnostics to go away after I close a script unless I have diagnostics for the whole workspace enabled.
I would like Luau-LSP to copy Roblox Studio's "Type Inference Modes" behavior documented here:
https://luau-lang.org/typecheck#type-inference-modes
This makes it easier to use other people's code that also uses these annotations without finding and changing ignore globs in vscode. I think this feature should be an optional setting in vscode to respect type inference modes annotation.
The text was updated successfully, but these errors were encountered: