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

String literals for == #481

Open neopaf opened 2 years ago

neopaf commented 2 years ago

Environment(环境)

name version
IDEA version IntelliJ IDEA 2021.3.3 (Ultimate Edition)
EmmyLua version 1.3.6.251-IDEA213
OS OSX 10.15.7

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

  1. declare variable to be of type string | "'with'" | "'literals'"
  2. start writing == comparison of that string

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

No suggestions.

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

Possible values to be suggested

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

When assigning we have nice suggestions (awesome, thanks a lot!): Снимок экрана 2022-06-25 в 10 13 47

But when comparing possible values are not listed: Снимок экрана 2022-06-25 в 10 14 25

Any other comments?(其它说明)

Amazingly useful work. Thanks again!