Skip to content

Commit

Permalink
Merge branch 'main' into yj-dartdevembedder-6
Browse files Browse the repository at this point in the history
  • Loading branch information
jyameo committed Jan 10, 2025
2 parents 344867d + a7c8fe7 commit 22cdf34
Show file tree
Hide file tree
Showing 18 changed files with 262 additions and 105 deletions.
4 changes: 3 additions & 1 deletion dwds/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## 24.4.0-wip
## 24.3.1

- Add support for binding DDS to a custom port.
- Added support for some debugging APIs with the DDC library bundle format. - [#2563](https://github.com/dart-lang/webdev/issues/2563)

## 24.3.0
Expand Down
1 change: 1 addition & 0 deletions dwds/lib/dart_web_debug_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ class Dwds {
debugSettings.expressionCompiler,
injected,
debugSettings.spawnDds,
debugSettings.ddsPort,
debugSettings.launchDevToolsInNewWindow,
);

Expand Down
5 changes: 3 additions & 2 deletions dwds/lib/data/build_result.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions dwds/lib/data/connect_request.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 11 additions & 7 deletions dwds/lib/data/debug_event.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 14 additions & 13 deletions dwds/lib/data/debug_info.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 15 additions & 13 deletions dwds/lib/data/devtools_request.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions dwds/lib/data/error_response.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 23 additions & 17 deletions dwds/lib/data/extension_request.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions dwds/lib/data/register_event.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dwds/lib/src/config/tool_configuration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class DebugSettings {
final bool useSseForDebugBackend;
final bool useSseForInjectedClient;
final bool spawnDds;
final int? ddsPort;
final bool enableDevToolsLaunch;
final bool launchDevToolsInNewWindow;
final bool emitDebugEvents;
Expand All @@ -75,6 +76,7 @@ class DebugSettings {
this.useSseForDebugBackend = true,
this.useSseForInjectedClient = true,
this.spawnDds = true,
this.ddsPort,
this.enableDevToolsLaunch = true,
this.launchDevToolsInNewWindow = true,
this.emitDebugEvents = true,
Expand Down
4 changes: 4 additions & 0 deletions dwds/lib/src/handlers/dev_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class DevHandler {
final bool _useSseForDebugProxy;
final bool _useSseForInjectedClient;
final bool _spawnDds;
final int? _ddsPort;
final bool _launchDevToolsInNewWindow;
final ExpressionCompiler? _expressionCompiler;
final DwdsInjector _injected;
Expand All @@ -90,6 +91,7 @@ class DevHandler {
this._expressionCompiler,
this._injected,
this._spawnDds,
this._ddsPort,
this._launchDevToolsInNewWindow,
) {
_subs.add(buildResults.listen(_emitBuildResults));
Expand Down Expand Up @@ -215,6 +217,7 @@ class DevHandler {
useSse: false,
expressionCompiler: _expressionCompiler,
spawnDds: _spawnDds,
ddsPort: _ddsPort,
);
}

Expand Down Expand Up @@ -645,6 +648,7 @@ class DevHandler {
useSse: _useSseForDebugProxy,
expressionCompiler: _expressionCompiler,
spawnDds: _spawnDds,
ddsPort: _ddsPort,
);
appServices = await _createAppDebugServices(
debugService,
Expand Down
Loading

0 comments on commit 22cdf34

Please sign in to comment.