| 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
|
|
|