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

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

Issue 1500723002: hookup new CompletionContributorFactory (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fix comment Created 5 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 | pkg/analysis_server/lib/src/provisional/completion/completion.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/provisional/completion/completion.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698