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

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

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: 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 b63a9c0346f9f47c0e4f085b9d2b061d15826be1..6daf3e19b7b19a5b0aea53faf3bae839445c6647 100644
--- a/pkg/analysis_server/lib/src/analysis_server.dart
+++ b/pkg/analysis_server/lib/src/analysis_server.dart
@@ -436,9 +436,8 @@ class AnalysisServer {
channel.sendResponse(exception.response);
return;
} catch (exception, stackTrace) {
- RequestError error = new RequestError(
- RequestErrorCode.SERVER_ERROR,
- exception);
+ RequestError error =
+ new RequestError(RequestErrorCode.SERVER_ERROR, exception);
if (stackTrace != null) {
error.stackTrace = stackTrace.toString();
}
@@ -563,9 +562,12 @@ class AnalysisServer {
* projects/contexts support.
*/
void setAnalysisRoots(String requestId, List<String> includedPaths,
- List<String> excludedPaths) {
+ List<String> excludedPaths, Map<String, String> packageRoots) {
try {
- contextDirectoryManager.setRoots(includedPaths, excludedPaths);
+ contextDirectoryManager.setRoots(
+ includedPaths,
+ excludedPaths,
+ packageRoots);
} on UnimplementedError catch (e) {
throw new RequestFailure(
new Response.unsupportedFeature(requestId, e.message));

Powered by Google App Engine
This is Rietveld 408576698