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

Unified Diff: pkg/analysis_server/lib/src/server/driver.dart

Issue 1915833007: Add Driver.useSingleContextManager to turn on single context manager. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 | « pkg/analysis_server/lib/src/analysis_server.dart ('k') | pkg/analysis_server/lib/src/socket_server.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/server/driver.dart
diff --git a/pkg/analysis_server/lib/src/server/driver.dart b/pkg/analysis_server/lib/src/server/driver.dart
index f04824fd4de4436f7e3636db92e8b8028b87e506..a5af1b228386e306bca74727c1c4337b822c5095 100644
--- a/pkg/analysis_server/lib/src/server/driver.dart
+++ b/pkg/analysis_server/lib/src/server/driver.dart
@@ -310,6 +310,14 @@ class Driver implements ServerStarter {
ResolverProvider packageResolverProvider;
/**
+ * If this flag is `true`, then single analysis context should be used for
+ * analysis of multiple analysis roots, special files that could otherwise
+ * cause creating additional contexts, such as `pubspec.yaml`, or `.packages`,
+ * or `.analysis_options` are ignored.
+ */
+ bool useSingleContextManager = false;
+
+ /**
* The plugins that are defined outside the analysis_server package.
*/
List<Plugin> _userDefinedPlugins = <Plugin>[];
@@ -436,8 +444,9 @@ class Driver implements ServerStarter {
defaultSdk,
service,
serverPlugin,
+ embeddedUriResolverProvider,
packageResolverProvider,
- embeddedUriResolverProvider);
+ useSingleContextManager);
httpServer = new HttpAnalysisServer(socketServer);
stdioServer = new StdioAnalysisServer(socketServer);
socketServer.userDefinedPlugins = _userDefinedPlugins;
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_server.dart ('k') | pkg/analysis_server/lib/src/socket_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698