Skip to content

semantic coloring for locals/globals is broken #3422

@Arxareon

Description

@Arxareon

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Formatting

Expected Behaviour

Locals and Globals used to have different coloring but since the latest VSCode update, they are colored the same, semantic highlighting on or off, same result.

Actual Behaviour

Locals and Globals used to have different coloring but since the latest VSCode update, they are colored the same, semantic highlighting on or off, same result. Not sure if VSCode broke this or the extension.
I inspected the tokens and the loval is variable.other the global is variable.global. They used to be different (using the default VSCode Dark 2026 theme), now they are colored the same.

Reproduction steps

create a local and a global, look at it.

Additional Notes

No response

Log File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions