Index: pkg/analysis_server/lib/src/socket_server.dart |
diff --git a/pkg/analysis_server/lib/src/socket_server.dart b/pkg/analysis_server/lib/src/socket_server.dart |
index 8fb9b8d24470d37ccc55748ef4e9c2153ebacf35..28e08cef8de0dc60e224219f0a11db41f337243e 100644 |
--- a/pkg/analysis_server/lib/src/socket_server.dart |
+++ b/pkg/analysis_server/lib/src/socket_server.dart |
@@ -75,17 +75,9 @@ class SocketServer { |
} |
analysisServer = new AnalysisServer(serverChannel, resourceProvider, |
- new OptimizingPubPackageMapProvider(resourceProvider, defaultSdk), index, |
- analysisServerOptions, defaultSdk, instrumentationService, |
- rethrowExceptions: false); |
- _initializeHandlers(analysisServer); |
+ new OptimizingPubPackageMapProvider(resourceProvider, defaultSdk), |
+ index, serverPlugin, analysisServerOptions, defaultSdk, |
+ instrumentationService, rethrowExceptions: false); |
analysisServer.userDefinedPlugins = userDefinedPlugins; |
} |
- |
- /** |
- * Initialize the handlers to be used by the given [server]. |
- */ |
- void _initializeHandlers(AnalysisServer server) { |
- server.handlers = serverPlugin.createDomains(server); |
- } |
} |