Reland "Add --serve-observatory flag to run, attach, and test (#118402)" (#119529)

* Reland "Add --serve-observatory flag to run, attach, and test (#118402)"

This reverts commit 86ab01d2bd.

* Fix flaky failures

* Fix VM service disappearing failure
This commit is contained in:
Ben Konyi
2023-01-30 16:00:18 -05:00
committed by GitHub
parent 92df6b4bc0
commit 7477d7ac79
16 changed files with 312 additions and 20 deletions

View File

@@ -458,6 +458,14 @@ abstract class FlutterCommand extends Command<void> {
);
}
void addServeObservatoryOptions({required bool verboseHelp}) {
argParser.addFlag('serve-observatory',
hide: !verboseHelp,
defaultsTo: true,
help: 'Serve the legacy Observatory developer tooling through the VM service.',
);
}
late final bool enableDds = () {
bool ddsEnabled = false;
if (argResults?.wasParsed('disable-dds') ?? false) {