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

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

Issue 2947743002: Add support to pass the location of the analysis options file to plugins (Closed)
Patch Set: Created 3 years, 6 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/plugin/plugin_manager.dart
diff --git a/pkg/analysis_server/lib/src/plugin/plugin_manager.dart b/pkg/analysis_server/lib/src/plugin/plugin_manager.dart
index 3f4756bbbd3bb8c20b5a16e3df568514226053a8..d62ede95d07ef46968caeeab77a20cc83e05172c 100644
--- a/pkg/analysis_server/lib/src/plugin/plugin_manager.dart
+++ b/pkg/analysis_server/lib/src/plugin/plugin_manager.dart
@@ -222,8 +222,9 @@ abstract class PluginInfo {
if (currentSession != null) {
AnalysisSetContextRootsParams params = new AnalysisSetContextRootsParams(
contextRoots
- .map((analyzer.ContextRoot contextRoot) =>
- new ContextRoot(contextRoot.root, contextRoot.exclude))
+ .map((analyzer.ContextRoot contextRoot) => new ContextRoot(
+ contextRoot.root, contextRoot.exclude,
+ optionsFile: contextRoot.optionsFilePath))
.toList());
currentSession.sendRequest(params);
}
« no previous file with comments | « pkg/analysis_server/lib/src/context_manager.dart ('k') | pkg/analysis_server/test/src/plugin/plugin_manager_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698