diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2015-09-18 15:34:11 +0300 |
---|---|---|
committer | Lluis Sanchez <lluis@xamarin.com> | 2015-09-18 15:34:11 +0300 |
commit | 4736754b7319c94b6cd067e308eb88ab567d5a3a (patch) | |
tree | 8be6e1e61dcfd08285c3535dbe5a5b056be2a6c4 | |
parent | 062225058f1d4a4cbb983b2a9d65cd8a4bcbc400 (diff) |
Reference check optimization
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Projects/DotNetProject.cs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/DotNetProject.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/DotNetProject.cs index b1b6e7b92f..5186d4dd23 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/DotNetProject.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/DotNetProject.cs @@ -532,14 +532,17 @@ namespace MonoDevelop.Projects get { return LanguageBinding.SupportsPartialTypes; } } - async void CheckReferenceChange (FilePath updatedFile) + void CheckReferenceChange (FilePath updatedFile) { for (int n=0; n<References.Count; n++) { ProjectReference pr = References [n]; if (pr.ReferenceType == ReferenceType.Assembly && DefaultConfiguration != null) { - if (pr.GetReferencedFileNames (DefaultConfiguration.Selector).Any (f => f == updatedFile)) + if (pr.GetReferencedFileNames (DefaultConfiguration.Selector).Any (f => f == updatedFile)) { + SetFastBuildCheckDirty (); pr.NotifyStatusChanged (); + } } else if (pr.HintPath == updatedFile) { + SetFastBuildCheckDirty (); var nr = pr.GetRefreshedReference (); if (nr != null) References [n] = nr; @@ -547,13 +550,15 @@ namespace MonoDevelop.Projects } // If a referenced assembly changes, dirtify the project. - if (DefaultConfiguration != null) { +/* if (DefaultConfiguration != null) { foreach (var asm in await GetReferencedAssemblies (DefaultConfiguration.Selector)) if (asm == updatedFile) { SetFastBuildCheckDirty (); break; } } + Removed for now since it can be a very slow operation + */ } internal override void OnFileChanged (object source, MonoDevelop.Core.FileEventArgs e) |