Chromium Code Reviews| 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 1d810078038ddbcf6418ec1c140fd3ca39a459e7..5556f17a7c62bce833e50454403df51a37531be0 100644 |
| --- a/pkg/analysis_server/lib/src/analysis_server.dart |
| +++ b/pkg/analysis_server/lib/src/analysis_server.dart |
| @@ -72,7 +72,7 @@ class AnalysisServer { |
| * The version of the analysis server. The value should be replaced |
| * automatically during the build. |
| */ |
| - static final String VERSION = '1.7.0'; |
| + static final String VERSION = '1.8.0'; |
| /** |
| * The number of milliseconds to perform operations before inserting |
| @@ -164,6 +164,12 @@ class AnalysisServer { |
| Set<ServerService> serverServices = new HashSet<ServerService>(); |
| /** |
| + * A set of the [GeneralAnalysisService]s to send notifications for. |
| + */ |
| + Set<GeneralAnalysisService> generalAnalysisServices = |
| + new HashSet<GeneralAnalysisService>(); |
| + |
| + /** |
| * A table mapping [AnalysisService]s to the file paths for which these |
| * notifications should be sent. |
| */ |
| @@ -762,6 +768,10 @@ class AnalysisServer { |
| _schedulePerformOperation(); |
| } else { |
| sendStatusNotification(null); |
| + if (generalAnalysisServices |
|
Paul Berry
2015/07/13 21:51:13
Consider putting this before the call to sendStatu
Brian Wilkerson
2015/07/13 22:05:03
Done
|
| + .contains(GeneralAnalysisService.ANALYZED_FILES)) { |
| + sendAnalysisNotificationAnalyzedFiles(this); |
| + } |
| if (_onAnalysisCompleteCompleter != null) { |
| _onAnalysisCompleteCompleter.complete(); |
| _onAnalysisCompleteCompleter = null; |
| @@ -950,6 +960,21 @@ class AnalysisServer { |
| } |
| /** |
| + * Implementation for `analysis.setGeneralSubscriptions`. |
| + */ |
| + void setGeneralAnalysisSubscriptions( |
| + List<GeneralAnalysisService> subscriptions) { |
| + Set<GeneralAnalysisService> newServices = subscriptions.toSet(); |
| + if (newServices.contains(GeneralAnalysisService.ANALYZED_FILES) && |
| + !generalAnalysisServices |
| + .contains(GeneralAnalysisService.ANALYZED_FILES) && |
| + isAnalysisComplete()) { |
| + sendAnalysisNotificationAnalyzedFiles(this); |
| + } |
| + generalAnalysisServices = newServices; |
| + } |
| + |
| + /** |
| * Set the priority files to the given [files]. |
| */ |
| void setPriorityFiles(String requestId, List<String> files) { |