Skip to content

Formatter does not take into account Nonstandard Symbol setting #2183

@jellyton255

Description

@jellyton255

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?

Formatting

Expected Behaviour

The document should be formatting when the document contains one of the nonstandard symbols defined in settings.

Actual Behaviour

The document does not format.

Reproduction steps

  1. Enter a non standard symbol into the non-standard symbol settings.
  2. Add a non standard symbol into your document.
  3. Attempt to format.
  4. Fail

Additional Notes

Settings:

"Lua.runtime.nonstandardSymbol": ["/**/", "`", "+=", "-=", "*=", "/=", "<<=", ">>=", "&=", "|=", "^="]

Example:
Code - June26 - 15 52 - 2476

Log File

log.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions