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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/RemoteAnalysisServerImpl.java

Issue 672003002: Add package root setting to analysis server API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/RemoteAnalysisServerImpl.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/RemoteAnalysisServerImpl.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/RemoteAnalysisServerImpl.java
index 6fe9b4a71d318bc936987e064a099478961c63c2..495d52d715854162a3740b3750dd33fd8b0ac3a2 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/RemoteAnalysisServerImpl.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/RemoteAnalysisServerImpl.java
@@ -240,7 +240,8 @@ public class RemoteAnalysisServerImpl implements AnalysisServer {
}
@Override
- public void analysis_setAnalysisRoots(List<String> includedPaths, List<String> excludedPaths) {
+ public void analysis_setAnalysisRoots(List<String> includedPaths, List<String> excludedPaths,
+ Map<String, String> packageRoots) {
String id = generateUniqueId();
if (includedPaths == null) {
includedPaths = EMPTY_STR_LIST;
@@ -248,9 +249,11 @@ public class RemoteAnalysisServerImpl implements AnalysisServer {
if (excludedPaths == null) {
excludedPaths = EMPTY_STR_LIST;
}
- sendRequestToServer(
+ sendRequestToServer(id, RequestUtilities.generateAnalysisSetAnalysisRoots(
id,
- RequestUtilities.generateAnalysisSetAnalysisRoots(id, includedPaths, excludedPaths));
+ includedPaths,
+ excludedPaths,
+ packageRoots));
}
@Override

Powered by Google App Engine
This is Rietveld 408576698