VSCode-EmmyLua icon indicating copy to clipboard operation
VSCode-EmmyLua copied to clipboard

Variables are sometimes underlined, without pattern or explanation

Open ipsquiggle opened this issue 4 months ago • 2 comments

Since installing this plugin, I've noticed that sometimes variables are underlined. The logic of these underlinings is unclear, I can't find a reference in the documentation, etc.

In the image, notice that the x and y params in one function are underlined, and in another they're not. This also sometimes happens with locals.

Image

If I use Inspect Editor Tokens and Scopes they appear to be identical.

Because it seems inconsistent I wonder if it's a bug? Otherwise, the issue is that it lacks explanation.

Let me know if I can provide more examples or information.

ipsquiggle avatar Aug 19 '25 17:08 ipsquiggle

It means that a variable is considered mutable if it has been reassigned within its scope.

CppCXY avatar Aug 20 '25 01:08 CppCXY

I see, very cool thank you!

I guess this is a documentation issue then. 👍

ipsquiggle avatar Sep 04 '25 18:09 ipsquiggle