-
-
Notifications
You must be signed in to change notification settings - Fork 386
Open
Description
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?
Diagnostics/Syntax Checking, Formatting
Expected Behaviour
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 something
end- Create a
.luarc.jsonfile with at list this configuration:
"nameStyle": {
"config": {
"local_name_style": "camel_case",
"function_param_name_style": "camel_case",
"function_name_style": "camel_case",
"local_function_name_style": "camel_case",
"table_field_name_style": "camel_case",
"global_variable_name_style": "pascal_case",
"module_name_style": "pascal_case",
"require_module_name_style": "pascal_case",
"class_name_style": "pascal_case",
"const_variable_name_style": "pascal_case"
}
}- Start VS code
- Look at the lua file. It will complain about the name style not being correct
- Open and Modify the
.luarc.jsonfile - Re-run the check on the workspace
- Now the issue is gone
Additional Notes
I'm using .editorconfig as well. I'm not sure if they are interfering with each other.
Log File
No response
Fringale
Metadata
Metadata
Assignees
Labels
No labels