| 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 771f9f1293c1b6008d4b96aa1b8e11b2feba5ee3..08ecc6bdaedb4e0ec11f9025058590a7eff384b7 100644
|
| --- a/pkg/analysis_server/lib/src/analysis_server.dart
|
| +++ b/pkg/analysis_server/lib/src/analysis_server.dart
|
| @@ -242,7 +242,7 @@ class AnalysisServer {
|
| /**
|
| * The controller that is notified when analysis is started.
|
| */
|
| - StreamController<AnalysisContext> _onAnalysisStartedController;
|
| + StreamController<bool> _onAnalysisStartedController;
|
|
|
| /**
|
| * The controller that is notified when a single file has been analyzed.
|
| @@ -492,9 +492,9 @@ class AnalysisServer {
|
| }
|
|
|
| /**
|
| - * The stream that is notified when analysis of a context is started.
|
| + * The stream that is notified with `true` when analysis is started.
|
| */
|
| - Stream<AnalysisContext> get onAnalysisStarted {
|
| + Stream<bool> get onAnalysisStarted {
|
| return _onAnalysisStartedController.stream;
|
| }
|
|
|
| @@ -1084,7 +1084,7 @@ class AnalysisServer {
|
| * Schedules analysis of the given context.
|
| */
|
| void schedulePerformAnalysisOperation(AnalysisContext context) {
|
| - _onAnalysisStartedController.add(context);
|
| + _onAnalysisStartedController.add(true);
|
| scheduleOperation(new PerformAnalysisOperation(context, false));
|
| }
|
|
|
| @@ -1168,6 +1168,9 @@ class AnalysisServer {
|
| * the [status] information.
|
| */
|
| void sendStatusNotificationNew(nd.AnalysisStatus status) {
|
| + if (status.isAnalyzing) {
|
| + _onAnalysisStartedController.add(true);
|
| + }
|
| if (_onAnalysisCompleteCompleter != null && !status.isAnalyzing) {
|
| _onAnalysisCompleteCompleter.complete();
|
| _onAnalysisCompleteCompleter = null;
|
|
|