Index: pkg/analysis_server/lib/src/operation/operation_analysis.dart |
diff --git a/pkg/analysis_server/lib/src/operation/operation_analysis.dart b/pkg/analysis_server/lib/src/operation/operation_analysis.dart |
index 76b27ae1e9e090fcd47c92397443ea7980d8ef52..b99cec3c962d6f50e1e93839a4db7e6a9c494e40 100644 |
--- a/pkg/analysis_server/lib/src/operation/operation_analysis.dart |
+++ b/pkg/analysis_server/lib/src/operation/operation_analysis.dart |
@@ -372,12 +372,7 @@ class PerformAnalysisOperation extends ServerOperation { |
List<ChangeNotice> notices = result.changeNotices; |
// nothing to analyze |
if (notices == null) { |
- bool cacheInconsistencyFixed = context.validateCacheConsistency(); |
- if (cacheInconsistencyFixed) { |
- server.addOperation(new PerformAnalysisOperation(context, true)); |
- return; |
- } |
- // analysis is done |
+ server.scheduleCacheConsistencyValidation(context); |
setCacheSize(context, IDLE_CACHE_SIZE); |
server.sendContextAnalysisDoneNotifications( |
context, AnalysisDoneReason.COMPLETE); |