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

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

Issue 1270593002: Server options handling. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Review fixes. Created 5 years, 5 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 78dcc69e79a8959c5684252d727ede6802d8d23d..99d5a1dc912f3a8423a048fa4be60a0a48e7a031 100644
--- a/pkg/analysis_server/lib/src/context_manager.dart
+++ b/pkg/analysis_server/lib/src/context_manager.dart
@@ -10,6 +10,7 @@ import 'dart:convert';
import 'dart:core' hide Resource;
import 'package:analysis_server/src/analysis_server.dart';
+import 'package:analysis_server/src/server_options.dart';
import 'package:analysis_server/uri/resolver_provider.dart';
import 'package:analyzer/file_system/file_system.dart';
import 'package:analyzer/instrumentation/instrumentation.dart';
@@ -307,7 +308,8 @@ class ContextManagerImpl implements ContextManager {
/**
* Temporary flag to hide WIP .packages support (DEP 5).
*/
- static bool ENABLE_PACKAGESPEC_SUPPORT = false;
+ static bool ENABLE_PACKAGESPEC_SUPPORT =
+ serverOptions.isSet('ContextManagerImpl.ENABLE_PACKAGESPEC_SUPPORT');
/**
* The name of the `lib` directory.
« 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