Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1088)

Unified Diff: pkg/analysis_server/lib/src/analysis_server.dart

Issue 2297343002: Flush results when contexts are made idle. (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/lib/src/analysis_server.dart
diff --git a/pkg/analysis_server/lib/src/analysis_server.dart b/pkg/analysis_server/lib/src/analysis_server.dart
index a5a0ad5ccc91c3dadba3bda78830a878a9107af7..7f2b297505fc7a1a075bccf5b06a94911f5a3c66 100644
--- a/pkg/analysis_server/lib/src/analysis_server.dart
+++ b/pkg/analysis_server/lib/src/analysis_server.dart
@@ -728,7 +728,7 @@ class AnalysisServer {
return units;
}
// add a unit for each unit/library combination
- runWithWorkingCacheSize(context, () {
+ runWithActiveContext(context, () {
Source unitSource = contextSource.source;
List<Source> librarySources = context.getLibrariesContaining(unitSource);
for (Source librarySource in librarySources) {
@@ -1468,7 +1468,7 @@ class AnalysisServer {
return null;
}
// if library has been already resolved, resolve unit
- return runWithWorkingCacheSize(context, () {
+ return runWithActiveContext(context, () {
return context.resolveCompilationUnit2(source, librarySource);
});
}

Powered by Google App Engine
This is Rietveld 408576698