Skip to content

Commit 186bfe7

Browse files
authored
[ DWDS ] Expose dtdUri via DebugConnection (#2694)
This is needed to access the DTD instance spawned by DDS.
1 parent 3ab8fca commit 186bfe7

File tree

8 files changed

+1016
-459
lines changed

8 files changed

+1016
-459
lines changed

dwds/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
## 26.0.0-wip
1+
## 26.0.0
22

33
- Bump SDK constraint to ^3.10.0
44
- Added 'scriptUri' parameter to compileExpressionToJs
55
- Fix an issue in `reloadSources` where a `PauseInterrupted` event was sent. - [#61560](https://github.com/dart-lang/sdk/issues/61560)
6+
- Expose `dtdUri` via `DebugConnection`.
67

78
## 25.1.0
89

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)