-
-
Notifications
You must be signed in to change notification settings - Fork 384
Closed
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
local str = {
"foo",
"bar", -- comma
}
local num = {
"foo",
23,
}
local bool = {
"foo",
true,
}
local tab = {
"foo",
{},
}Actual Behaviour
local str = {
"foo",
"bar" -- missing comma
}
local num = {
"foo",
23,
}
local bool = {
"foo",
true,
}
local tab = {
"foo",
{},
}Reproduction steps
- Format following document:
local str = {
"foo",
"bar"
}
local num = {
"foo",
23
}
local bool = {
"foo",
true
}
local tab = {
"foo",
{}
}Additional Notes
Editor config option: trailing_table_separator = smart
Log File
No response
Metadata
Metadata
Assignees
Labels
No labels