| Index: pkg/analysis_server/lib/src/context_manager.dart
|
| diff --git a/pkg/analysis_server/lib/src/context_manager.dart b/pkg/analysis_server/lib/src/context_manager.dart
|
| index 723c9c7d069b5c06c9c1711c971f5b87e2e164f3..41fb266c567266a8506af709ed704b8372aa6a33 100644
|
| --- a/pkg/analysis_server/lib/src/context_manager.dart
|
| +++ b/pkg/analysis_server/lib/src/context_manager.dart
|
| @@ -310,8 +310,8 @@ class ContextManagerImpl implements ContextManager {
|
| /**
|
| * Temporary flag to hide WIP .packages support (DEP 5).
|
| */
|
| - static bool ENABLE_PACKAGESPEC_SUPPORT =
|
| - serverOptions.isSet('ContextManagerImpl.ENABLE_PACKAGESPEC_SUPPORT');
|
| + static bool ENABLE_PACKAGESPEC_SUPPORT = serverOptions.isSet(
|
| + 'ContextManagerImpl.ENABLE_PACKAGESPEC_SUPPORT', defaultValue: true);
|
|
|
| /**
|
| * The name of the `lib` directory.
|
| @@ -845,8 +845,10 @@ class ContextManagerImpl implements ContextManager {
|
| }
|
|
|
| bool createContext = packageSpec.exists || !withPackageSpecOnly;
|
| - if (withPackageSpecOnly && packageSpec.exists &&
|
| - (parent != null) && parent.ignored(packageSpec.path)) {
|
| + if (withPackageSpecOnly &&
|
| + packageSpec.exists &&
|
| + (parent != null) &&
|
| + parent.ignored(packageSpec.path)) {
|
| // Don't create a context if the package spec is required and ignored.
|
| createContext = false;
|
| }
|
|
|