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

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

Issue 2382033003: Revert "Remove unused option in server API" (Closed)
Patch Set: Created 4 years, 3 months 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
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 81a36ef0d4b099212a5663e0b6c12df468521ae6..887e1b730b06b51c4482d80d5e6966e306ac0a7c 100644
--- a/pkg/analysis_server/lib/src/socket_server.dart
+++ b/pkg/analysis_server/lib/src/socket_server.dart
@@ -12,6 +12,7 @@ import 'package:analysis_server/src/services/index/index.dart';
import 'package:analyzer/file_system/physical_file_system.dart';
import 'package:analyzer/instrumentation/instrumentation.dart';
import 'package:analyzer/plugin/resolver_provider.dart';
+import 'package:analyzer/source/pub_package_map_provider.dart';
import 'package:analyzer/src/generated/sdk.dart';
import 'package:plugin/plugin.dart';
@@ -88,8 +89,15 @@ class SocketServer {
index = createMemoryIndex();
}
- analysisServer = new AnalysisServer(serverChannel, resourceProvider, index,
- serverPlugin, analysisServerOptions, sdkManager, instrumentationService,
+ analysisServer = new AnalysisServer(
+ serverChannel,
+ resourceProvider,
+ new PubPackageMapProvider(resourceProvider, defaultSdk),
+ index,
+ serverPlugin,
+ analysisServerOptions,
+ sdkManager,
+ instrumentationService,
fileResolverProvider: fileResolverProvider,
packageResolverProvider: packageResolverProvider,
useSingleContextManager: useSingleContextManager,

Powered by Google App Engine
This is Rietveld 408576698