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 a241918b8ad5b184209f1df203fbceb0609ebc4c..e1d914d837428c60deb2c29c6adb86a164a0efa3 100644 |
--- a/pkg/analysis_server/lib/src/analysis_server.dart |
+++ b/pkg/analysis_server/lib/src/analysis_server.dart |
@@ -1856,11 +1856,20 @@ class ServerContextManagerCallbacks extends ContextManagerCallbacks { |
sendAnalysisNotificationOverrides(analysisServer, path, unit); |
}); |
} |
+ if (analysisServer._hasAnalysisServiceSubscription( |
+ AnalysisService.OUTLINE, path)) { |
+ _runDelayed(() { |
+ SourceKind sourceKind = |
+ unit.directives.any((d) => d is PartOfDirective) |
+ ? SourceKind.PART |
+ : SourceKind.LIBRARY; |
+ sendAnalysisNotificationOutline( |
+ analysisServer, path, result.lineInfo, sourceKind, unit); |
+ }); |
+ } |
} |
// TODO(scheglov) Implement more notifications. |
// IMPLEMENTED |
- // OCCURRENCES (not used in IDEA) |
- // OUTLINE (not used in IDEA) |
}); |
analysisDriver.exceptions.listen((nd.ExceptionResult result) { |
AnalysisEngine.instance.logger |