Autocomplete / Display custom table types #384
Labels
enhancement
New feature or request
feat/LuaCats Annotations
Related to Lua Language Server Annotations (LuaCats)
It would be awesome if it was possible to describe custom tables that expect certain properties, similar to TypeScript's interface declarations:
I know it's already possible to do something like that via the
@class
and@field
annotations, but using the class type for a parameter doesn't autocomplete or display the possible fields when calling the function.Example:
When calling
make_rectangle
it would be nice to see the allowed properties and even get them autocompleted within the table literal.The text was updated successfully, but these errors were encountered: