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

Unified Diff: pkg/analysis_server/lib/src/services/completion/dart_completion_manager.dart

Issue 785393003: Rollback r42232. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/services/completion/dart_completion_manager.dart
diff --git a/pkg/analysis_server/lib/src/services/completion/dart_completion_manager.dart b/pkg/analysis_server/lib/src/services/completion/dart_completion_manager.dart
index 9b73818418f68d5f3d820cf3c7a80348f5a41697..e2c9cdcbf525a25f5c5e87147931e61e3f6897fc 100644
--- a/pkg/analysis_server/lib/src/services/completion/dart_completion_manager.dart
+++ b/pkg/analysis_server/lib/src/services/completion/dart_completion_manager.dart
@@ -75,14 +75,14 @@ class DartCompletionManager extends CompletionManager {
new DartCompletionCache(context, source));
}
-// @override
-// void computeCache() {
-// waitForAnalysis().then((CompilationUnit unit) {
-// if (unit != null && !cache.isImportInfoCached(unit)) {
-// cache.computeImportInfo(unit, searchEngine);
-// }
-// });
-// }
+ @override
+ void computeCache() {
+ waitForAnalysis().then((CompilationUnit unit) {
+ if (unit != null && !cache.isImportInfoCached(unit)) {
+ cache.computeImportInfo(unit, searchEngine);
+ }
+ });
+ }
/**
* Compute suggestions based upon cached information only
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698