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

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

Issue 789603007: Stop sending unwanted status and fix integration tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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/test/integration/integration_tests.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 94fa1731ce1d4396cfa23e3ba1ab82d2374f32dc..346dba1404de719bbb103cd98d38a76b0d467f2a 100644
--- a/pkg/analysis_server/lib/src/analysis_server.dart
+++ b/pkg/analysis_server/lib/src/analysis_server.dart
@@ -1057,9 +1057,11 @@ class ServerContextManager extends ContextManager {
}
void _computingPackageMap(bool computing) {
- PubStatus pubStatus = new PubStatus(computing);
- ServerStatusParams params = new ServerStatusParams(pub: pubStatus);
- analysisServer.sendNotification(params.toNotification());
+ if (analysisServer.serverServices.contains(ServerService.STATUS)) {
+ PubStatus pubStatus = new PubStatus(computing);
+ ServerStatusParams params = new ServerStatusParams(pub: pubStatus);
+ analysisServer.sendNotification(params.toNotification());
+ }
}
/**
« no previous file with comments | « no previous file | pkg/analysis_server/test/integration/integration_tests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698