diff options
author | Lluis Sanchez Gual <lluis@xamarin.com> | 2015-04-20 19:07:51 +0300 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@xamarin.com> | 2015-04-20 19:07:51 +0300 |
commit | 95408b1a41b31b645f3a8c3323ab7d3ca4bff26b (patch) | |
tree | f8f137cddcb9a40499d303be95722fd2c6081bce /main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/FileRegistry.cs | |
parent | b70e4e04b4e41b8ec28d7e4b220b401ecf467e7a (diff) | |
parent | de043d330a8bf5855d4d983c804cd36727cb2406 (diff) |
Merge remote-tracking branch 'origin/roslyn' into new-project-model
Diffstat (limited to 'main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/FileRegistry.cs')
-rw-r--r-- | main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/FileRegistry.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/FileRegistry.cs b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/FileRegistry.cs index e069c63271..44a5eecce6 100644 --- a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/FileRegistry.cs +++ b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/FileRegistry.cs @@ -31,6 +31,7 @@ using MonoDevelop.Core; using Services = MonoDevelop.Projects.Services; using MonoDevelop.Ide; using MonoDevelop.Ide.TypeSystem; +using MonoDevelop.Ide.Editor; namespace MonoDevelop.SourceEditor { @@ -42,7 +43,6 @@ namespace MonoDevelop.SourceEditor { readonly static List<SourceEditorView> openFiles = new List<SourceEditorView> (); readonly static FileSystemWatcher fileSystemWatcher; - readonly static StringComparison fileNameComparer = Platform.IsWindows ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal; public static bool SuspendFileWatch { get; @@ -84,7 +84,7 @@ namespace MonoDevelop.SourceEditor bool foundOneChange = false; foreach (var file in e) { foreach (var view in openFiles) { - if (SkipView (view) || !string.Equals (view.ContentName, file.FileName, fileNameComparer)) + if (SkipView (view) || !string.Equals (view.ContentName, file.FileName, FilePath.PathComparison)) continue; if (!view.IsDirty/* && (IdeApp.Workbench.AutoReloadDocuments || file.AutoReload)*/) view.SourceEditorWidget.Reload (); @@ -129,7 +129,7 @@ namespace MonoDevelop.SourceEditor foreach (var view in openFiles) { if (SkipView (view)) continue; - if (string.Equals (view.ContentName, fileName, fileNameComparer)) { + if (string.Equals (view.ContentName, fileName, FilePath.PathComparison)) { if (view.LastSaveTimeUtc == File.GetLastWriteTimeUtc (fileName)) continue; if (!view.IsDirty/* && IdeApp.Workbench.AutoReloadDocuments*/) |