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

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

Issue 1253183015: Flip .packages server support bit. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 months 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 | « no previous file | pkg/analysis_server/lib/src/server_options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/server_options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698