Skip to content

VS Code Colors Not Displayed Correctly #3335

@SeriWTR

Description

@SeriWTR

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?

Annotations

Expected Behaviour

The expected behavior is that colors should be displayed correctly. For example, my theme provides yellow as the annotations, but LLS shows it as gray. Here's a picture of what it used to look like in September.

Image

Actual Behaviour

The annotation colors are not displayed correctly. All are gray, which started to happen in December. Here's what it looks like now.

Image Image

Reproduction steps

1- Open VS Code
2- Wait for LLS to load.
3- Colors won't load.

Additional Notes

This started to happen after December 20th, which started to happen after I had installed Node.js, but I disabled JS extensions, still broken. I've checked if my theme had been updated, but last update 5 months ago. I'm using One Dark Pro. This is my settings.json that is in ./vscode.

{
    "Lua.diagnostics.disable": [
        "param-type-mismatch",
    ],
    "Lua.workspace.ignoreDir": [
        "Other/Lua Archives",
        "Other/Unused",
        "D:/Code/Lua/Projects/Game Launcher/Scripts/Versions/game_beforeMeta.lua"
    ],
    "Lua.diagnostics.ignoredFiles": "Disable",
    "Lua.workspace.ignoreSubmodules": true,
    "Lua.diagnostics.globals": [
        "jit",
        "lfs"
    ],
    "files.associations": {
        "*.lua": "lua",
        "windows.h": "c",
        "limits": "c"
    },
    "editor.tokenColorCustomizations": {
        "textMateRules": [
            {
                "scope": "keyword.operator",
                "settings": {
                    "foreground": "#c678dd"
                }
            },
        ]
    },
    "editor.semanticHighlighting.enabled": true,
    "[One Dark Pro]": {
        "editor.semanticHighlighting.enabled": true
    },
    "C_Cpp.errorSquiggles": "disabled",
    "stylua.targetReleaseVersion": "latest",
    "Lua.workspace.library": [
        "${addons}/lua-cjson/module/library",
        "${addons}/luafilesystem/module/library",
        "${addons}/luasocket/module/library",
        "${addons}/love2d/module/library",
        "${addons}/dkjson/module/library"
    ],
    "Lua.workspace.checkThirdParty": false,
    "Lua.runtime.version": "Lua 5.4",
    "Lua.runtime.special": {
        "love.filesystem.load": "loadfile"
    },
    "Lua.runtime.nonstandardSymbol": [],
}

Log File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions