We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55dcfb5 commit 540eb4dCopy full SHA for 540eb4d
3 files changed
CodeService/src/LuaFormatter.cpp
@@ -1076,12 +1076,13 @@ std::shared_ptr<FormatElement> LuaFormatter::FormatIfStatement(std::shared_ptr<L
1076
}
1077
1078
env->AddChild(FormatExpression(child, expression));
1079
- env->Add<KeepBlankElement>(1);
+ env->Add<KeepElement>(1);
1080
break;
1081
1082
default:
1083
{
1084
DefaultHandle(child, env);
1085
1086
1087
1088
Test/test_script/format_text/wait_format/if.lua
@@ -23,9 +23,7 @@ if a then return a --end
23
24
end
25
26
-
27
28
29
30
+if a --
+then
+end
31
Test/test_script/format_text/wait_format_should_be/if.lua
@@ -22,3 +22,7 @@ if a then return a --end
22
+
0 commit comments