diff --git a/src/OmniSharp.Roslyn.CSharp/Workers/Formatting/FormattingWorker.cs b/src/OmniSharp.Roslyn.CSharp/Workers/Formatting/FormattingWorker.cs index f64b3c76c1..4bfdaa0930 100644 --- a/src/OmniSharp.Roslyn.CSharp/Workers/Formatting/FormattingWorker.cs +++ b/src/OmniSharp.Roslyn.CSharp/Workers/Formatting/FormattingWorker.cs @@ -25,7 +25,7 @@ public static async Task> GetFormattingC return await GetFormattingChanges(document, targetLine.Start, targetLine.End); } } - else if (character == '}' || character == ';') + else if (character == '}' || character == ';' || character == '{') { // format after ; and } var root = await document.GetSyntaxRootAsync();