diff --git a/src/VisualStudio/Core/Def/EditorConfigSettings/SettingsEditorControl.xaml.cs b/src/VisualStudio/Core/Def/EditorConfigSettings/SettingsEditorControl.xaml.cs index 0a169a069fd1e..fcfb84c251857 100644 --- a/src/VisualStudio/Core/Def/EditorConfigSettings/SettingsEditorControl.xaml.cs +++ b/src/VisualStudio/Core/Def/EditorConfigSettings/SettingsEditorControl.xaml.cs @@ -94,10 +94,15 @@ internal void SynchronizeSettings() var updatedText = originalText; foreach (var view in _views) { + // Get any changes for the editors. This will return the source text if there are no changes. updatedText = await view.UpdateEditorConfigAsync(updatedText).ConfigureAwait(false); } - _textUpdater.UpdateText(updatedText.GetTextChanges(originalText)); + // Save the updates if they are different from what is currently saved + if (updatedText != originalText) + { + _textUpdater.UpdateText(updatedText.GetTextChanges(originalText)); + } }); }