Index: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/utilities/RequestUtilities.java |
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/utilities/RequestUtilities.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/utilities/RequestUtilities.java |
index 5253968b610d8e2d86219a734b5fdc1a7b65b926..c8739cdc6f72aab508ea44dd8a5ce914c5a261b1 100644 |
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/utilities/RequestUtilities.java |
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/utilities/RequestUtilities.java |
@@ -201,15 +201,19 @@ public class RequestUtilities { |
* "params": { |
* "included": List<FilePath> |
* "excluded": List<FilePath> |
+ * "packageRoots": optional Map<FilePath, FilePath> |
* } |
* } |
* </pre> |
*/ |
public static JsonObject generateAnalysisSetAnalysisRoots(String id, List<String> included, |
- List<String> excluded) { |
+ List<String> excluded, Map<String, String> packageRoots) { |
JsonObject params = new JsonObject(); |
params.add("included", buildJsonElement(included)); |
params.add("excluded", buildJsonElement(excluded)); |
+ if (packageRoots != null) { |
+ params.add("packageRoots", buildJsonElement(packageRoots)); |
+ } |
return buildJsonObjectRequest(id, METHOD_ANALYSIS_SET_ROOTS, params); |
} |