Closed
Description
Currently all tools wishing to connect to the service protocol need to scrape the URL and authentication codes from stdout. However, this isn't always possible or convenient (@DanTup mentioned some VSCode use cases that cannot rely on listening to stdout to get the service protocol information). The VM should provide a way to dump service protocol information to a file in a well known format that can be consumed by tooling (e.g., dart --observe --dump-service-info=service.json foo.dart
).
Example format:
{
"version": 1,
"url": "http://127.0.0.1",
"port": 8080,
"authentication_code": "6iSIXM0fOBk=",
}