table definitions are not properly recognized #1148
Labels
bug
Something isn't working
feat/LuaCats Annotations
Related to Lua Language Server Annotations (LuaCats)
Milestone
Describe the bug
After creating an alias of a table,
---@alias foo {name: value}
that is, and using that alias as a function param/return, the language server seems to not be able to recognize what type is it, reporting backany
as the type.In the above example, typing a table as the input anyways, and then pressing
ctrl + space
does show the right fields:If the said type was used directly instead of creating it as an alias, it semi-works:
Although, it again never suggests the table fields until you explicitly do type an empty table
{}
and then pressctrl + space
(As shown previously).To Reproduce
See above screenshots.
Expected behavior
table
or as{name: value}
.{}
in-place of the table type. Orfun()
types.Environment:
The text was updated successfully, but these errors were encountered: