Skip to content

Conversation

bkonyi
Copy link
Collaborator

@bkonyi bkonyi commented Aug 28, 2025

In order to reduce the number of ways DevTools is served across the ecosystem, we're working on serving DevTools from DDS by default in all tools that spawn DDS.

This change exposes some new DDS related configuration options that allow for specifying whether or not DevTools should be served via DDS and whether or not an existing DevTools server should be used.

The devToolsLauncher parameter has been marked as deprecated as it will be removed in a future major release, but will continue to act as the default way to launch DevTools if it is provided. Other DDS related properties that have been merged into the new
DartDevelopmentServiceConfiguration class are also marked as deprecated.

In order to reduce the number of ways DevTools is served across the
ecosystem, we're working on serving DevTools from DDS by default in all
tools that spawn DDS.

This change exposes some new DDS related configuration options that
allow for specifying whether or not DevTools should be served via DDS
and whether or not an existing DevTools server should be used.

The `devToolsLauncher` parameter has been marked as deprecated as it
will be removed in a future major release, but will continue to act as
the default way to launch DevTools if it is provided. Other DDS related
properties that have been merged into the new
`DartDevelopmentServiceConfiguration` class are also marked as
deprecated.
Copy link

Package publishing

Package Version Status Publish tag (post-merge)
package:dwds 25.1.0 ready to publish dwds-v25.1.0
package:frontend_server_client 4.0.0 already published at pub.dev
package:webdev 3.8.0-wip WIP (no publish necessary)

Documentation at https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

@bkonyi bkonyi marked this pull request as ready for review August 28, 2025 18:57
@bkonyi bkonyi requested a review from srujzs August 28, 2025 18:57
bool? serveDevTools,
Uri? devToolsServerAddress,
}) {
return DartDevelopmentServiceConfiguration(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it not valid for a user to pass null for port and devToolsServerAddress and the fields to be set to null?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair point. I'm just going to remove this and reconstruct the DartDevelopmentServiceConfiguration instance manually since this is only relevant until the deprecated properties are removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants