Skip to content

Adding +=, -=, and others to nonstandardSymbol doesn't fix formatting for that file #1175

@unbelievableflavour

Description

@unbelievableflavour

Describe the bug
When adding +=, -= and other symbols to Lua.runtime.nonstandardSymbol, errors are removed from the "Problems" tab, and compiling is possible again. But formatting the document doesn't work when foo += 1 is somewhere in the document.

To Reproduce
Steps to reproduce the behavior:

  1. Go to a file
  2. add
local foo =               0
foo += 1
  1. Reformat the document
  2. Code stays like
local foo =               0
foo += 1

Expected behavior
Code should look like

local foo = 0
foo += 1

Environment:

  • OS: macOS
  • Client: VSCode

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions