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

refactor(cli/inspector): make server optional #7656

Conversation

caspervonb
Copy link
Contributor

@caspervonb caspervonb commented Sep 24, 2020

This makes inspector registration with the server with optional and explicit to allow for inspectors to exist without spinning up the server.

As a side effect of the server being explicitly passed around it also makes it possible to bind multiple servers (Not likely we'll ever need that, but it is possible).

This makes inspector registration with the server with optional and
explicit to allow for inspectors to exist without spinning up the
server.

As a side effect of the server being explicitly passed around it also
makes it possible to bind multiple servers.
@caspervonb caspervonb marked this pull request as draft September 24, 2020 13:47
@caspervonb caspervonb marked this pull request as ready for review September 24, 2020 13:51
@caspervonb
Copy link
Contributor Author

Ties into #7473

@bartlomieju
Copy link
Member

@caspervonb so --coverage will not print Debugger listening on... message?

@caspervonb
Copy link
Contributor Author

caspervonb commented Sep 24, 2020

@caspervonb so --coverage will not print Debugger listening on... message?

In a follow up it will, this only makes the two separable but doesn't change the behaviour of current flags configuration/parsing.

cli/worker.rs Outdated Show resolved Hide resolved
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM, nice cleanup @caspervonb

@bartlomieju bartlomieju merged commit 01147fa into denoland:master Sep 25, 2020
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.

None yet

2 participants