Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: pkg/analysis_server/lib/src/analysis_server.dart

Issue 800913002: Report pub status (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/doc/api.html ('k') | pkg/analysis_server/lib/src/context_manager.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dac925c66f5154e1b565eb0dd20f626fc30dd596..1d829a4fecdc8ae7a58c24cac6b5306235c828a9 100644
--- a/pkg/analysis_server/lib/src/analysis_server.dart
+++ b/pkg/analysis_server/lib/src/analysis_server.dart
@@ -1024,6 +1024,16 @@ class ServerContextManager extends ContextManager {
}
@override
+ void beginComputePackageMap() {
+ _computingPackageMap(true);
+ }
+
+ @override
+ void endComputePackageMap() {
+ _computingPackageMap(false);
+ }
+
+ @override
void removeContext(Folder folder) {
AnalysisContext context = analysisServer.folderMap.remove(folder);
if (analysisServer.index != null) {
@@ -1046,6 +1056,12 @@ class ServerContextManager extends ContextManager {
analysisServer.schedulePerformAnalysisOperation(context);
}
+ void _computingPackageMap(bool computing) {
+ PubStatus pubStatus = new PubStatus(computing);
+ ServerStatusParams params = new ServerStatusParams(pub: pubStatus);
+ analysisServer.sendNotification(params.toNotification());
+ }
+
/**
* Set up a [SourceFactory] that resolves packages using the given
* [packageUriResolver].
« no previous file with comments | « pkg/analysis_server/doc/api.html ('k') | pkg/analysis_server/lib/src/context_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698