From d7b953a893ff91dba0bc97a8b9e1c6e0038be2d8 Mon Sep 17 00:00:00 2001 From: CyrusNajmabadi Date: Sat, 20 Feb 2016 21:00:14 -0800 Subject: [PATCH] Formatting. --- .../IntelliSense/Completion/Controller_Commit.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EditorFeatures/Core/Implementation/IntelliSense/Completion/Controller_Commit.cs b/src/EditorFeatures/Core/Implementation/IntelliSense/Completion/Controller_Commit.cs index 22140550e5e..e3a7cb6a389 100644 --- a/src/EditorFeatures/Core/Implementation/IntelliSense/Completion/Controller_Commit.cs +++ b/src/EditorFeatures/Core/Implementation/IntelliSense/Completion/Controller_Commit.cs @@ -124,8 +124,8 @@ private void Commit(CompletionItem item, TextChange textChange, Model model, cha var document = this.SubjectBuffer.CurrentSnapshot.GetOpenDocumentInCurrentContextWithChanges(); var formattingService = document.GetLanguageService(); - var commitCharTriggersFormatting = commitChar != null && - (formattingService?.SupportsFormattingOnTypedCharacter(document, commitChar.GetValueOrDefault()) + var commitCharTriggersFormatting = commitChar != null && + (formattingService?.SupportsFormattingOnTypedCharacter(document, commitChar.GetValueOrDefault()) ?? false); if (formattingService != null && (item.ShouldFormatOnCommit || commitCharTriggersFormatting)) -- GitLab