Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings in config.json did not apply when this addon is enabled #228

Open
ahai64 opened this issue Feb 26, 2025 · 0 comments
Open

Settings in config.json did not apply when this addon is enabled #228

ahai64 opened this issue Feb 26, 2025 · 0 comments

Comments

@ahai64
Copy link
Contributor

ahai64 commented Feb 26, 2025

After I enabled PICO-8 addon, the settings in config.json is not applied completely.

In workspace .vscode/settings.json:

{
    "Lua.workspace.library": [
        "${addons}/pico8/module/library"
    ],
    "Lua.runtime.version": "LuaJIT",
    "Lua.workspace.checkThirdParty": false,
    "Lua.diagnostics.disable": [
        "err-esc"
    ],
    "Lua.runtime.nonstandardSymbol": [
        "//"
    ],
    "Lua.runtime.builtin": {
        "basic": "enable",
        "bit": "disable",
        "bit32": "disable",
        "builtin": "enable",
        "coroutine": "enable",
        "debug": "enable",
        "ffi": "disable",
        "io": "disable",
        "jit": "disable",
        "math": "enable",
        "os": "disable",
        "package": "disable",
        "string": "enable",
        "table": "enable",
        "table.clear": "disable",
        "table.new": "disable",
        "utf8": "enable"
    }
}

In ...\sumneko.lua\addonManager\addons\pico8\module\config.json and the repo on Github:

{
    "name": "PICO-8",
    "settings": {
        "Lua.runtime.version": "LuaJIT",
        "Lua.workspace.checkThirdParty": false,
        "Lua.diagnostics.disable": [
            "lowercase-global",
            "undefined-doc-name",
            "err-esc"
        ],
        "Lua.runtime.nonstandardSymbol": [
            "!=",
            "+=",
            "-=",
            "*=",
            "/=",
            "%=",
            "^=",
            "|=",
            "&=",
            "<<=",
            ">>=",
            "//"
        ],
        "Lua.runtime.builtin": {
            "basic": "enable",
            "bit": "disable",
            "bit32": "disable",
            "builtin": "enable",
            "coroutine": "enable",
            "debug": "enable",
            "ffi": "disable",
            "io": "disable",
            "jit": "disable",
            "math": "enable",
            "os": "disable",
            "package": "disable",
            "string": "enable",
            "table": "enable",
            "table.clear": "disable",
            "table.new": "disable",
            "utf8": "enable"
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant