Open
Description
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
Code to be formatted without the rest of the code being deleted.
Actual Behaviour
On certain errors, the formatter seems to delete everything past the point of error (though it occasionally saves a few lines).
ding196.mp4
Reproduction steps
- Create a test lua file
- Write some lua code
- At the very top, write
anything = ....
(I noticed justanything =
will also cause issues) - Trigger a format run.
- Watch your code disappear.
Additional Notes
I'm not sure of all the errors that will trigger code deletion, but the ones I am aware of is:
anything = ....
anything =
anything = {x =}
So my initial assumption is that it just affects errors with assignments.