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

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

Issue 1232393005: Add notification of analyzed files (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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/domain_analysis.dart
diff --git a/pkg/analysis_server/lib/src/domain_analysis.dart b/pkg/analysis_server/lib/src/domain_analysis.dart
index 8a5740699585a9a8454d54692913a5572bfbc50f..42afae33f24f5cbedb1eab496bb5c2e0799b89a4 100644
--- a/pkg/analysis_server/lib/src/domain_analysis.dart
+++ b/pkg/analysis_server/lib/src/domain_analysis.dart
@@ -168,6 +168,8 @@ class AnalysisDomainHandler implements RequestHandler {
return reanalyze(request);
} else if (requestName == ANALYSIS_SET_ANALYSIS_ROOTS) {
return setAnalysisRoots(request);
+ } else if (requestName == ANALYSIS_SET_GENERAL_SUBSCRIPTIONS) {
+ return setGeneralSubscriptions(request);
} else if (requestName == ANALYSIS_SET_PRIORITY_FILES) {
return setPriorityFiles(request);
} else if (requestName == ANALYSIS_SET_SUBSCRIPTIONS) {
@@ -219,6 +221,16 @@ class AnalysisDomainHandler implements RequestHandler {
}
/**
+ * Implement the 'analysis.setGeneralSubscriptions' request.
+ */
+ Response setGeneralSubscriptions(Request request) {
+ AnalysisSetGeneralSubscriptionsParams params =
+ new AnalysisSetGeneralSubscriptionsParams.fromRequest(request);
+ server.setGeneralAnalysisSubscriptions(params.subscriptions);
+ return new AnalysisSetGeneralSubscriptionsResult().toResponse(request.id);
+ }
+
+ /**
* Implement the 'analysis.setPriorityFiles' request.
*/
Response setPriorityFiles(Request request) {

Powered by Google App Engine
This is Rietveld 408576698