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

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

Issue 2768003003: IdeOptions awareness for Driver (for access via IDEA registry). (Closed)
Patch Set: Created 3 years, 9 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/ide_options.dart ('k') | no next file » | 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 a96f054495fbc03fa5fabea87ba9b89435588d0e..fec24785f66b1c87cc4a26d72ba19fdab4b6911f 100644
--- a/pkg/analysis_server/lib/src/server/driver.dart
+++ b/pkg/analysis_server/lib/src/server/driver.dart
@@ -277,6 +277,12 @@ class Driver implements ServerStarter {
static const String NEW_ANALYSIS_DRIVER_LOG = 'new-analysis-driver-log';
/**
+ * The name of the option used to enable verbose Flutter completion code generation.
+ */
+ static const String VERBOSE_FLUTTER_COMPLETIONS =
+ 'verbose-flutter-completions';
+
+ /**
* The name of the flag used to disable the index.
*/
static const String NO_INDEX = "no-index";
@@ -398,6 +404,8 @@ class Driver implements ServerStarter {
analysisServerOptions.fileReadMode = results[FILE_READ_MODE];
analysisServerOptions.newAnalysisDriverLog =
results[NEW_ANALYSIS_DRIVER_LOG];
+ analysisServerOptions.enableVerboseFlutterCompletions =
+ results[VERBOSE_FLUTTER_COMPLETIONS];
_initIncrementalLogger(results[INCREMENTAL_RESOLUTION_LOG]);
@@ -564,6 +572,8 @@ class Driver implements ServerStarter {
negatable: false);
parser.addOption(NEW_ANALYSIS_DRIVER_LOG,
help: "set a destination for the new analysis driver's log");
+ parser.addOption(VERBOSE_FLUTTER_COMPLETIONS,
+ help: "enable verbose code completion for Flutter (experimental)");
parser.addOption(PORT_OPTION,
help: "the http diagnostic port on which the server provides"
" status and performance information");
@@ -666,10 +676,10 @@ class _DiagnosticServerImpl extends DiagnosticServer {
_DiagnosticServerImpl();
+ @override
+ Future<int> getServerPort() => httpServer.serveHttp();
+
Future startOnPort(int port) {
return httpServer.serveHttp(port);
}
-
- @override
- Future<int> getServerPort() => httpServer.serveHttp();
}
« no previous file with comments | « pkg/analysis_server/lib/src/ide_options.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698