Skip to content

Commit 1be3161

Browse files
committed
[ DWDS ] Expose dtdUri via DebugConnection
This is needed to access the DTD instance spawned by DDS.
1 parent 29ba1b1 commit 1be3161

File tree

8 files changed

+390
-340
lines changed

8 files changed

+390
-340
lines changed

dwds/CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
## 25.1.1-wip
1+
## 25.1.1
22

3-
- Bump SDK constraint to ^3.10.0
3+
- Bump SDK constraint to ^3.10.0.
4+
- Expose `dtdUri` via `DebugConnection`.
45

56
## 25.1.0
67

dwds/lib/src/connections/debug_connection.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ class DebugConnection {
4141
/// The endpoint of the Dart DevTools instance.
4242
String? get devToolsUri => _appDebugServices.devToolsUri?.toString();
4343

44+
/// The endpoint of the Dart Tooling Daemon (DTD).
45+
String? get dtdUri => _appDebugServices.dtdUri?.toString();
46+
4447
/// A client of the Dart VM Service with DWDS specific extensions.
4548
VmService get vmService => _appDebugServices.dwdsVmClient.client;
4649

dwds/lib/src/handlers/dev_handler.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,7 @@ class DevHandler {
861861
dwdsStats,
862862
dds?.wsUri,
863863
dds?.devToolsUri,
864+
dds?.dtdUri,
864865
);
865866
final encodedUri = await debugService.encodedUri;
866867
_logger.info('Debug service listening on $encodedUri\n');

0 commit comments

Comments
 (0)