-
-
Notifications
You must be signed in to change notification settings - Fork 374
Closed
Labels
feat/formatterRelated to code formatterRelated to code formatter
Description
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Linux
What is the issue affecting?
Formatting
Expected Behaviour
From following the formatter docs link, it looks like there's been a major upstream release, which might explain this.
Here's my configuration:
{
"Lua.format.defaultConfig": {
"keep_line_after_do_statement": "maxLine:1",
"keep_line_after_expression_statement": "maxLine:1",
"keep_line_after_for_statement": "maxLine:1",
"keep_line_after_function_define_statement": "keepLine:1",
"keep_line_after_if_statement": "maxLine:1",
"keep_line_after_local_or_assign_statement": "maxLine:1",
"keep_line_after_repeat_statement": "maxLine:1",
"keep_line_after_while_statement": "maxLine:1",
"keep_one_space_between_table_and_bracket": "false"
},
}
Actual Behaviour
I expect my formatting settings to be used whenever I format Lua code, but they aren't anymore. Subsequent blank lines aren't collapsed, and spaces are added inside table brackets.
Reproduction steps
- Configure Lua's format settings as per documentation.
- Format a Lua file in Visual Studio Code.
- Check formatting.
Additional Notes
No response
Log File
No response
Metadata
Metadata
Assignees
Labels
feat/formatterRelated to code formatterRelated to code formatter