You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
.luarc.json file doesn't apply the nameStyle.config #2643
When I start VS code the nameStyle.config should be the one configured in the .luarc.json file.
Actual Behaviour
The nameStyle.config seems to revert internally to the default values. In order for the nameStyle to be applied I have to change the .luarc.json file once more so that VS code re-run some sort of update.
Reproduction steps
Create a lua file in your workspace with this content:
toNumberOr=function (amount, defaultValue)
-- do somethingend
Create a .luarc.json file with at list this configuration:
I am also having this issue; the same reproduction steps apply.
The first load of vscode does not have name style applied, but if the file is edited then it starts working.
This is also present when using --check on the command line. .\luals\bin\lua-language-server.exe --check . (on version 3.13.0)
I'm facing the same issue when using Zed's Lua extension (https://github.com/zed-extensions/lua): after starting Zed, the nameStyle.config settings seems to fall back to the internal default values instead of what I set in .luarc.json, and I have to do some edit to nameStyle.config then save .luarc.json for my configuration to be applied.
same here; nameStyle is accepted though when set in the settings of the lua_ls in the client editor. (However, since I assume every repo will use a different name style, it isn't helpful to set it there, luarc is kinda needed for this one.)
Activity
Cooldude2606 commentedon Nov 15, 2024
I am also having this issue; the same reproduction steps apply.
The first load of vscode does not have name style applied, but if the file is edited then it starts working.
This is also present when using
--checkon the command line..\luals\bin\lua-language-server.exe --check .(on version3.13.0){ "$filepath": "./.luarc.json", "diagnostics.groupFileStatus": { "codestyle": "Opened" }, "nameStyle.config": { "module_local_name_style": "upper_snake_case" } }{ "$filepath": "./luals/log/check.json", "file:///.../main.lua": [ { "code": "name-style-check", "message": "Name 'TEST_VAR' does not match rule 'ModuleLocalVariableName', which require 'snake-case'", "range": { "end": { "character": 14, "line": 1 }, "start": { "character": 6, "line": 1 } }, "severity": 2, "source": "Lua Diagnostics." } ] }Disable name style check due to open issue
Fringale commentedon Nov 10, 2025
I'm facing the same issue when using Zed's Lua extension (https://github.com/zed-extensions/lua): after starting Zed, the
nameStyle.configsettings seems to fall back to the internal default values instead of what I set in.luarc.json, and I have to do some edit tonameStyle.configthen save.luarc.jsonfor my configuration to be applied.chrisgrieser commentedon Nov 29, 2025
same here;
nameStyleis accepted though when set in the settings of the lua_ls in the client editor. (However, since I assume every repo will use a different name style, it isn't helpful to set it there,luarcis kinda needed for this one.)