Index: pkg/analysis_server/lib/src/domain_completion.dart |
diff --git a/pkg/analysis_server/lib/src/domain_completion.dart b/pkg/analysis_server/lib/src/domain_completion.dart |
index 0a5f7511817a1d1a63247bff4f7dcb67d29436f7..370e7bfad1d573ab8c3b5e32957132c8a1d795aa 100644 |
--- a/pkg/analysis_server/lib/src/domain_completion.dart |
+++ b/pkg/analysis_server/lib/src/domain_completion.dart |
@@ -101,7 +101,7 @@ class CompletionDomainHandler implements RequestHandler { |
} |
_discardManager(); |
} |
- _manager = createCompletionManager(context, source, searchEngine); |
+ _manager = createCompletionManager(server, context, source); |
if (context != null) { |
_sourcesChangedSubscription = |
context.onSourcesChanged.listen(sourcesChanged); |
@@ -123,8 +123,9 @@ class CompletionDomainHandler implements RequestHandler { |
} |
CompletionManager createCompletionManager( |
- AnalysisContext context, Source source, SearchEngine searchEngine) { |
- return new CompletionManager.create(context, source, searchEngine); |
+ AnalysisServer server, AnalysisContext context, Source source) { |
+ return new CompletionManager.create(context, source, server.searchEngine, |
+ server.serverPlugin.completionContributors); |
} |
@override |