| Index: pkg/analysis_server/lib/src/operation/operation_analysis.dart
|
| diff --git a/pkg/analysis_server/lib/src/operation/operation_analysis.dart b/pkg/analysis_server/lib/src/operation/operation_analysis.dart
|
| index e4b5cfb6d715e1e7d8ab31393fd3c504baf26b39..51725f7a7d448e8968fb5a5eebb1c73d58b301d3 100644
|
| --- a/pkg/analysis_server/lib/src/operation/operation_analysis.dart
|
| +++ b/pkg/analysis_server/lib/src/operation/operation_analysis.dart
|
| @@ -34,16 +34,6 @@ void scheduleIndexOperation(AnalysisServer server, String file,
|
| void scheduleNotificationOperations(AnalysisServer server, String file,
|
| LineInfo lineInfo, AnalysisContext context, CompilationUnit parsedDartUnit,
|
| CompilationUnit resolvedDartUnit, List<AnalysisError> errors) {
|
| - // Only send notifications if the current context is the preferred
|
| - // context for the file. This avoids redundant notification messages
|
| - // being sent to the client (see dartbug.com/22210).
|
| - // TODO(paulberry): note that there is a small risk that this will cause
|
| - // notifications to be lost if the preferred context for a file changes
|
| - // while analysis is in progress (e.g. because the client sent an
|
| - // analysis.setAnalysisRoots message).
|
| - if (server.getAnalysisContext(file) != context) {
|
| - return;
|
| - }
|
| // Dart
|
| CompilationUnit dartUnit =
|
| resolvedDartUnit != null ? resolvedDartUnit : parsedDartUnit;
|
|
|