| 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].
|
|
|