EmmyLua / IntelliJ-EmmyLua

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

EmmyLua doesn't handle the types of variables returned by functions used in chain calls #359

Closed winterwolf closed 4 years ago

winterwolf commented 4 years ago

Here is 2 examples of code. They do absolutely the same but written in different styles.

examples

First example works better because it is optimized for EmmyLua. Method addText returns type TreeText, it's described in its class as ---@return TreeText but EmmyLua can't show any hints.

screenshot-001

screenshot-001