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 ebe71e739983767ac35d9ce4267b3db052f427e6..228e0ae5c38313a5461b70d77c400ded69e07242 100644 |
--- a/pkg/analysis_server/lib/src/operation/operation_analysis.dart |
+++ b/pkg/analysis_server/lib/src/operation/operation_analysis.dart |
@@ -12,6 +12,7 @@ import 'package:analysis_server/src/computer/computer_outline.dart'; |
import 'package:analysis_server/src/computer/computer_overrides.dart'; |
import 'package:analysis_server/src/operation/operation.dart'; |
import 'package:analysis_server/src/protocol_server.dart' as protocol; |
+import 'package:analysis_server/src/services/dependencies/library_dependencies.dart'; |
import 'package:analysis_server/src/services/index/index.dart'; |
import 'package:analyzer/src/generated/ast.dart'; |
import 'package:analyzer/src/generated/engine.dart'; |
@@ -98,6 +99,17 @@ void scheduleNotificationOperations(AnalysisServer server, String file, |
} |
} |
+void sendAnalysisNotificationAnalyzedFiles(AnalysisServer server) { |
+ _sendNotification(server, () { |
+ LibraryDependencyCollector collector = |
+ new LibraryDependencyCollector(server.getAnalysisContexts().toList()); |
+ Set<String> directories = collector.collectLibraryDependencies(); |
+ protocol.AnalysisAnalyzedFilesParams params = |
+ new protocol.AnalysisAnalyzedFilesParams(directories.toList()); |
+ server.sendNotification(params.toNotification()); |
+ }); |
+} |
+ |
void sendAnalysisNotificationErrors(AnalysisServer server, String file, |
LineInfo lineInfo, List<AnalysisError> errors) { |
_sendNotification(server, () { |