-
Notifications
You must be signed in to change notification settings - Fork 30.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Re-Indenting is (completely) broken in lua #66873
Comments
(Experimental duplicate detection) |
Not a duplicate |
Now this bug is present in the normal version of VS Code instead of just insiders, which (honestly said) sucks. Now working on my projects became much harder than it was before. |
This is also messed up on my installation. I am using no settings that change auto-indent. All
|
I found the source of the bug. In my copy of VS Code, I undid the change done to fix #63407. Then, everything worked perfectly. |
This bug makes my programming difficult and I hope to fix it as soon as possible. |
If anyone wants a quick hack to fix it, all you have to do is
Now indentation should be better! |
Thank you @WorldofBay , fixed via #68978 |
Good to see a recent fix to this, however, it is still broken on my side. I tried to apply the fix on my language-configuration.json, tried both with and without the here's a test code I did, function test()
function test()
if(test) then
else
end
end
end
local test = {
test = function ()
end
} edit: |
Okay, this is marked as closed but I still have the problem. Are there any news regarding this topic? |
It works properly on my side. Do you have any Lua extensions like Lua Plus which highlights syntax? |
are you using insider? if not, the fix is not published yet. expected release date is today, however the checklist on #69177 is not fully done yet, so it might also be slightly later. |
Ahh, I'm not using the insider build. Thanks! :) |
Issue Type: Bug
When re-indenting while using Lua everything is put on indent level 0, all existing indents in a file are removed and put on the same level.
In other languages it seems to only work when it's based on brackets/parentheses, but even in XML for example nothing seems to get indented.
Very important is, is that I'm not talking about the formatting code feature, but just the "Reindent Lines" feature, which I have been using a lot.
VS Code version: Code - Insiders 1.31.0-insider (e9bb33f, 2019-01-21T06:19:35.291Z)
OS version: Windows_NT x64 10.0.17763
The text was updated successfully, but these errors were encountered: