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

field rename #469

Open neopaf opened 2 years ago

neopaf commented 2 years ago

Environment(环境)

name version
IDEA version IDEA 2021.2.3
EmmyLua version 1.3.6.224-IDEA213
OS 10.15.7 (19H1824)

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

---@class Test
---@field t1

---@type Test
local test = {}

local b = test.t2

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

t2 is not marked as invalid field: Снимок экрана 2022-04-12 в 17 29 04

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

Line 7: t2 marked (by default in shade of red) as invalid field.

Any other comments?(其它说明)

Maybe optional...

neopaf commented 2 years ago

using this opportunity let me deeply thank you for this extremely useful plugin!

CppCXY commented 2 years ago

intellij emmylua does not currently support this check

neopaf commented 2 years ago

Is it something that can be quick-fixed? Looks like some one function to be provided and a simple one.

But then again, it so looks ;)

CppCXY commented 2 years ago

vscode emmylua support this, but it is still in the experimental stage

CppCXY commented 2 years ago

image

neopaf commented 2 years ago

hm.. are you implying current version can do that?

When I tried to check, my Idea shows this:

Снимок экрана 2022-04-13 в 16 35 04

bbb is not marked at all :(

Maybe you're showing a quick preview at future happiness? :)

CppCXY commented 2 years ago

after next release,I would consider this