| 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 3d0940cb03186770353e637c3c3a2e754791b62e..b865b8e09c8b891a384a5e70ee9a63c8e1a6c694 100644
|
| --- a/pkg/analysis_server/lib/src/analysis_server.dart
|
| +++ b/pkg/analysis_server/lib/src/analysis_server.dart
|
| @@ -30,6 +30,7 @@ import 'package:analyzer/exception/exception.dart';
|
| import 'package:analyzer/file_system/file_system.dart';
|
| import 'package:analyzer/instrumentation/instrumentation.dart';
|
| import 'package:analyzer/plugin/resolver_provider.dart';
|
| +import 'package:analyzer/source/pub_package_map_provider.dart';
|
| import 'package:analyzer/src/context/builder.dart';
|
| import 'package:analyzer/src/dart/ast/utilities.dart';
|
| import 'package:analyzer/src/generated/engine.dart';
|
| @@ -37,6 +38,7 @@ import 'package:analyzer/src/generated/sdk.dart';
|
| import 'package:analyzer/src/generated/source.dart';
|
| import 'package:analyzer/src/generated/source_io.dart';
|
| import 'package:analyzer/src/generated/utilities_general.dart';
|
| +import 'package:analyzer/src/summary/package_bundle_reader.dart';
|
| import 'package:analyzer/src/summary/pub_summary.dart';
|
| import 'package:analyzer/src/task/dart.dart';
|
| import 'package:analyzer/src/util/glob.dart';
|
| @@ -318,6 +320,7 @@ class AnalysisServer {
|
| AnalysisServer(
|
| this.channel,
|
| this.resourceProvider,
|
| + PubPackageMapProvider packageMapProvider,
|
| Index _index,
|
| this.serverPlugin,
|
| this.options,
|
| @@ -347,6 +350,7 @@ class AnalysisServer {
|
| resourceProvider,
|
| sdkManager,
|
| packageResolverProvider,
|
| + packageMapProvider,
|
| analyzedFilesGlobs,
|
| instrumentationService,
|
| defaultContextOptions);
|
| @@ -1424,6 +1428,14 @@ class AnalysisServer {
|
| });
|
| }
|
|
|
| + void _computingPackageMap(bool computing) {
|
| + if (serverServices.contains(ServerService.STATUS)) {
|
| + PubStatus pubStatus = new PubStatus(computing);
|
| + ServerStatusParams params = new ServerStatusParams(pub: pubStatus);
|
| + sendNotification(params.toNotification());
|
| + }
|
| + }
|
| +
|
| /**
|
| * Return a set of all contexts whose associated folder is contained within,
|
| * or equal to, one of the resources in the given list of [resources].
|
| @@ -1614,6 +1626,10 @@ class ServerContextManagerCallbacks extends ContextManagerCallbacks {
|
| }
|
|
|
| @override
|
| + void computingPackageMap(bool computing) =>
|
| + analysisServer._computingPackageMap(computing);
|
| +
|
| + @override
|
| ContextBuilder createContextBuilder(Folder folder, AnalysisOptions options) {
|
| String defaultPackageFilePath = null;
|
| String defaultPackagesDirectoryPath = null;
|
|
|