Skip to content

space_around_table_append_operator actual effect is inverse of expected in .editorconfig in IntelliJ on macOS #3281

@waddie96

Description

@waddie96

How are you using the lua-language-server?

Other

Which OS are you using?

MacOS

What is the issue affecting?

Formatting

Expected Behaviour

space_around_table_append_operator setting to boolean true in .editorconfig expect t[#t + 1] = 1, instead of t[#t+1] = 1.

Actual Behaviour

Inverse occurs. If boolean true, no space is added. If boolean false, space is added.

Reproduction steps

  1. In .editorconfig
  2. Set space_around_table_append_operator = true under [*.lua]
  1. Format a .lua file with:
t[#t+1] = 1
t[#t + 1] = 1

Output is inverse of what is expected:

t[#t+1] = 1
t[#t+1] = 1

Expected:

t[#t + 1] = 1
t[#t + 1] = 1

Additional Notes

No response

Log File

SumnekoLua (3.15.0.46-IDEA243)
I don't know where to get the Sumneko log file on IntelliJ.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions