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

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

Issue 2290423002: Set 'packageResolverProvider' for ContextBuilder in DAS. (Closed)
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 12b6378a777afc9892a2cf3881af9bbf8602601f..a5a0ad5ccc91c3dadba3bda78830a878a9107af7 100644
--- a/pkg/analysis_server/lib/src/analysis_server.dart
+++ b/pkg/analysis_server/lib/src/analysis_server.dart
@@ -299,6 +299,12 @@ class AnalysisServer {
ResolverProvider fileResolverProvider;
/**
+ * The package resolver provider used to override the way package URI's are
+ * resolved in some contexts.
+ */
+ ResolverProvider packageResolverProvider;
+
+ /**
* The manager of pub package summaries.
*/
PubSummaryManager pubSummaryManager;
@@ -351,6 +357,7 @@ class AnalysisServer {
defaultContextOptions);
}
this.fileResolverProvider = fileResolverProvider;
+ this.packageResolverProvider = packageResolverProvider;
ServerContextManagerCallbacks contextManagerCallbacks =
new ServerContextManagerCallbacks(this, resourceProvider);
contextManager.callbacks = contextManagerCallbacks;
@@ -1661,6 +1668,7 @@ class ServerContextManagerCallbacks extends ContextManagerCallbacks {
analysisServer.sdkManager, analysisServer.overlayState);
builder.defaultOptions = options;
builder.fileResolverProvider = analysisServer.fileResolverProvider;
+ builder.packageResolverProvider = analysisServer.packageResolverProvider;
builder.defaultPackageFilePath = defaultPackageFilePath;
builder.defaultPackagesDirectoryPath = defaultPackagesDirectoryPath;
return builder;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698