Index: pkg/analysis_server/lib/src/analysis_server.dart |
diff --git a/pkg/analysis_server/lib/src/analysis_server.dart b/pkg/analysis_server/lib/src/analysis_server.dart |
index ae1bb0aa14e60390f23c112c8ef4c45befaee8ad..fdef53a210d98f8781b5ffbd40ad5849f0a45019 100644 |
--- a/pkg/analysis_server/lib/src/analysis_server.dart |
+++ b/pkg/analysis_server/lib/src/analysis_server.dart |
@@ -1645,16 +1645,18 @@ class ServerContextManagerCallbacks extends ContextManagerCallbacks { |
} |
} |
+ ContextBuilderOptions builderOptions = new ContextBuilderOptions(); |
+ builderOptions.defaultOptions = options; |
+ builderOptions.defaultPackageFilePath = defaultPackageFilePath; |
+ builderOptions.defaultPackagesDirectoryPath = defaultPackagesDirectoryPath; |
+ if (analysisServer.options.enablePubSummaryManager) { |
+ builderOptions.pubSummaryManager = analysisServer.pubSummaryManager; |
+ } |
ContextBuilder builder = new ContextBuilder(resourceProvider, |
- analysisServer.sdkManager, analysisServer.overlayState); |
- builder.defaultOptions = options; |
+ analysisServer.sdkManager, analysisServer.overlayState, |
+ options: builderOptions); |
builder.fileResolverProvider = analysisServer.fileResolverProvider; |
builder.packageResolverProvider = analysisServer.packageResolverProvider; |
- builder.defaultPackageFilePath = defaultPackageFilePath; |
- builder.defaultPackagesDirectoryPath = defaultPackagesDirectoryPath; |
- if (analysisServer.options.enablePubSummaryManager) { |
- builder.pubSummaryManager = analysisServer.pubSummaryManager; |
- } |
return builder; |
} |