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

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

Issue 2834993002: Add support for three more plugin requests (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/plugin/plugin_manager.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d903e865756895194ae4548235c0bd95a56199b8..ede1621fbb9c43f1c35572927171cf7e470f1513 100644
--- a/pkg/analysis_server/lib/src/domain_analysis.dart
+++ b/pkg/analysis_server/lib/src/domain_analysis.dart
@@ -16,6 +16,7 @@ import 'package:analysis_server/src/domains/analysis/navigation.dart';
import 'package:analysis_server/src/domains/analysis/navigation_dart.dart';
import 'package:analysis_server/src/operation/operation_analysis.dart'
show NavigationOperation, OccurrencesOperation;
+import 'package:analysis_server/src/plugin/request_converter.dart';
import 'package:analysis_server/src/protocol/protocol_internal.dart';
import 'package:analysis_server/src/protocol_server.dart';
import 'package:analysis_server/src/services/dependencies/library_dependencies.dart';
@@ -333,6 +334,15 @@ class AnalysisDomainHandler implements RequestHandler {
Response setPriorityFiles(Request request) {
var params = new AnalysisSetPriorityFilesParams.fromRequest(request);
server.setPriorityFiles(request.id, params.files);
+ //
+ // Forward the request to the plugins.
+ //
+ RequestConverter converter = new RequestConverter();
+ server.pluginManager.setAnalysisSetPriorityFilesParams(
+ converter.convertAnalysisSetPriorityFilesParams(params));
+ //
+ // Send the response.
+ //
return new AnalysisSetPriorityFilesResult().toResponse(request.id);
}
@@ -345,6 +355,15 @@ class AnalysisDomainHandler implements RequestHandler {
Map<AnalysisService, Set<String>> subMap = mapMap(params.subscriptions,
valueCallback: (List<String> subscriptions) => subscriptions.toSet());
server.setAnalysisSubscriptions(subMap);
+ //
+ // Forward the request to the plugins.
+ //
+ RequestConverter converter = new RequestConverter();
+ server.pluginManager.setAnalysisSetSubscriptionsParams(
+ converter.convertAnalysisSetSubscriptionsParams(params));
+ //
+ // Send the response.
+ //
return new AnalysisSetSubscriptionsResult().toResponse(request.id);
}
@@ -354,6 +373,15 @@ class AnalysisDomainHandler implements RequestHandler {
Response updateContent(Request request) {
var params = new AnalysisUpdateContentParams.fromRequest(request);
server.updateContent(request.id, params.files);
+ //
+ // Forward the request to the plugins.
+ //
+ RequestConverter converter = new RequestConverter();
+ server.pluginManager.setAnalysisUpdateContentParams(
+ converter.convertAnalysisUpdateContentParams(params));
+ //
+ // Send the response.
+ //
return new AnalysisUpdateContentResult().toResponse(request.id);
}
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/plugin/plugin_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698