File tree Expand file tree Collapse file tree 7 files changed +27
-9
lines changed Expand file tree Collapse file tree 7 files changed +27
-9
lines changed Original file line number Diff line number Diff line change 1
- ## 25.1.0+1-wip
1
+ ## 25.1.0+1
2
2
3
3
- Bump SDK constraint to ^3.10.0
4
4
- Added 'scriptUri' parameter to compileExpressionToJs
5
5
- 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 ` .
6
7
7
8
## 25.1.0
8
9
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ class DebugConnection {
41
41
/// The endpoint of the Dart DevTools instance.
42
42
String ? get devToolsUri => _appDebugServices.devToolsUri? .toString ();
43
43
44
+ /// The endpoint of the Dart Tooling Daemon (DTD).
45
+ String ? get dtdUri => _appDebugServices.dtdUri? .toString ();
46
+
44
47
/// A client of the Dart VM Service with DWDS specific extensions.
45
48
VmService get vmService => _appDebugServices.dwdsVmClient.client;
46
49
Original file line number Diff line number Diff line change @@ -869,6 +869,7 @@ class DevHandler {
869
869
dwdsStats,
870
870
dds? .wsUri,
871
871
dds? .devToolsUri,
872
+ dds? .dtdUri,
872
873
);
873
874
final encodedUri = await debugService.encodedUri;
874
875
_logger.info ('Debug service listening on $encodedUri \n ' );
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ abstract class AppDebugServices {
14
14
DwdsStats ? get dwdsStats;
15
15
Uri ? get ddsUri;
16
16
Uri ? get devToolsUri;
17
+ Uri ? get dtdUri;
17
18
String ? get connectedInstanceId;
18
19
set connectedInstanceId (String ? id);
19
20
Future <void > close ();
@@ -27,6 +28,7 @@ class ChromeAppDebugServices implements AppDebugServices {
27
28
final DwdsStats _dwdsStats;
28
29
final Uri ? _ddsUri;
29
30
final Uri ? _devToolsUri;
31
+ final Uri ? _dtdUri;
30
32
Future <void >? _closed;
31
33
String ? _connectedInstanceId;
32
34
@@ -36,6 +38,7 @@ class ChromeAppDebugServices implements AppDebugServices {
36
38
this ._dwdsStats,
37
39
this ._ddsUri,
38
40
this ._devToolsUri,
41
+ this ._dtdUri,
39
42
);
40
43
41
44
@override
@@ -53,6 +56,9 @@ class ChromeAppDebugServices implements AppDebugServices {
53
56
@override
54
57
Uri ? get devToolsUri => _devToolsUri;
55
58
59
+ @override
60
+ Uri ? get dtdUri => _dtdUri;
61
+
56
62
@override
57
63
String ? get connectedInstanceId => _connectedInstanceId;
58
64
@@ -86,12 +92,17 @@ class WebSocketAppDebugServices implements AppDebugServices {
86
92
// WebSocket-only service - Chrome/DDS features not available
87
93
@override
88
94
DwdsStats ? get dwdsStats => null ;
95
+
89
96
@override
90
97
// TODO(bkonyi): DDS should still start in WebSocket mode.
91
98
Uri ? get ddsUri => null ;
99
+
92
100
@override
93
101
Uri ? get devToolsUri => null ;
94
102
103
+ @override
104
+ Uri ? get dtdUri => null ;
105
+
95
106
@override
96
107
ProxyService get proxyService => _debugService.webSocketProxyService;
97
108
Original file line number Diff line number Diff line change 1
1
name : dwds
2
2
# Every time this changes you need to run `dart run build_runner build`.
3
- version : 25.1.0+1-wip
3
+ version : 25.1.0+1
4
4
5
5
description : >-
6
6
A service that proxies between the Chrome debug protocol and the Dart VM
@@ -15,8 +15,8 @@ dependencies:
15
15
built_value : ^8.3.0
16
16
collection : ^1.15.0
17
17
crypto : ^3.0.2
18
- dds : ' >=4.2.5 <6.0.0'
19
- file : ' >=6.1.4 <8.0.0'
18
+ dds : " >=4.2.5 <6.0.0"
19
+ file : " >=6.1.4 <8.0.0"
20
20
http : ^1.0.0
21
21
http_multi_server : ^3.2.0
22
22
logging : ^1.0.2
@@ -29,15 +29,15 @@ dependencies:
29
29
shelf_packages_handler : ^3.0.0
30
30
shelf_proxy : ^1.0.4
31
31
shelf_static : ^1.1.0
32
- shelf_web_socket : ' >=2.0.0 <4.0.0'
32
+ shelf_web_socket : " >=2.0.0 <4.0.0"
33
33
source_maps : ^0.10.10
34
34
stack_trace : ^1.10.0
35
35
stream_channel : ^2.1.2
36
36
sse : ^4.1.2
37
37
uuid : ^4.0.0
38
- vm_service : ' >=14.2.4 <16.0.0'
38
+ vm_service : " >=14.2.4 <16.0.0"
39
39
vm_service_interface : ^2.0.1
40
- web_socket_channel : ' >=2.2.0 <4.0.0'
40
+ web_socket_channel : " >=2.2.0 <4.0.0"
41
41
web : ^1.1.0
42
42
webkit_inspection_protocol : ^1.0.1
43
43
@@ -55,7 +55,7 @@ dev_dependencies:
55
55
frontend_server_common :
56
56
path : ../frontend_server_common
57
57
io : ^1.0.5
58
- js : ' >=0.6.4 <0.8.0'
58
+ js : " >=0.6.4 <0.8.0"
59
59
pubspec_parse : ^1.2.0
60
60
puppeteer : ^3.1.1
61
61
test : ^1.21.6
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ void main() {
42
42
),
43
43
);
44
44
expect (Uri .parse (context.debugConnection.ddsUri! ).port, expectedPort);
45
+ expect (context.debugConnection.dtdUri, isNotNull);
45
46
});
46
47
47
48
test ('DWDS starts DDS with a specified port' , () async {
@@ -58,5 +59,6 @@ void main() {
58
59
),
59
60
);
60
61
expect (Uri .parse (context.debugConnection.ddsUri! ).port, expectedPort);
62
+ expect (context.debugConnection.dtdUri, isNotNull);
61
63
});
62
64
}
You can’t perform that action at this time.
0 commit comments