EmmyLua / IntelliJ-EmmyLua

Lua IDE/Debugger Plugin for IntelliJ IDEA
https://emmylua.github.io
Apache License 2.0
1.73k stars 290 forks source link

TableConstructor声明的变量在添加---@class注解之后无法自动补全 #472

Open JamesHuang0331 opened 2 years ago

JamesHuang0331 commented 2 years ago

Environment(环境)

name version
IDEA version 2021.3.3 Ultimate Edition
EmmyLua version v1.3.6
OS Windows 10

What are the steps to reproduce this issue?(重现步骤?)

What happens?(出现什么问题?)

table如果使用---@class注解修饰,使用Table Constructor声明的变量无法补全 image

但是在初始化table之后为其添加的变量可以补全。 image

What were you expecting to happen?(期望?)

希望可以补全在---@class注解修饰下的Table Constructor声明的变量

Any logs, error output, etc?(有没有什么log, error输出?)

(If it’s long, please paste to https://ghostbin.com/ and insert the link here.)

Any other comments?(其它说明)

CppCXY commented 2 years ago

这是一个BUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUG,在224版本以后出现的。有时间我再看看