Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch from open to opener #1656

Merged
merged 1 commit into from
Sep 26, 2021
Merged

Conversation

johannst
Copy link
Contributor

By default, opener launches the subprocess without waiting for its
completion, compared to open which waits for its completion.

This is helpful in case the watch feature is enabled and one of the
following commands watch | serve --open is used. If this command would
open the browser, listening for changes would be blocked by the browser.

This fixes #1639.

Copy link
Contributor

@ehuss ehuss left a comment

Choose a reason for hiding this comment

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

Thanks!

By default, `opener` launches the subprocess without waiting for its
completion, compared to `open` which waits for its completion.

This is helpful in case the `watch` feature is enabled and one of the
following commands `watch | serve --open` is used. If this command would
open the browser, listening for changes would be blocked by the browser.
@ehuss ehuss merged commit f5598b2 into rust-lang:master Sep 26, 2021
@johannst johannst deleted the switch-to-opener-crate branch September 26, 2021 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

serve/watch with --open blocks change watcher
2 participants