diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/MonoDevelopMetadataReferenceManager.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/MonoDevelopMetadataReferenceManager.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/MonoDevelopMetadataReferenceManager.cs index 60b644660c..4a9b92eaa0 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/MonoDevelopMetadataReferenceManager.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/MonoDevelopMetadataReferenceManager.cs @@ -217,8 +217,11 @@ namespace MonoDevelop.Ide.TypeSystem public void ClearCache () { - _metadataCache.ClearCache(); + // Clear the reference cache before the metadata cache + // as the FileWatcher updates can technically trigger while the metadata cache + // is being cleared, avoiding unnecessary work and possible items not being invalidated. _metadataReferenceCache.ClearCache (); + _metadataCache.ClearCache(); } |