Skip to content

Support disabling the launch of DevTools through keybinding #1269

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

Merged
merged 3 commits into from
Mar 11, 2021

Conversation

grouma
Copy link
Member

@grouma grouma commented Mar 11, 2021

@grouma grouma requested a review from jacob314 March 11, 2021 21:42
@google-cla google-cla bot added the cla: yes label Mar 11, 2021
@@ -163,6 +163,12 @@ void main() {
expect(result.body.contains('dummy-load-client-snippet'), isTrue);
});

test('Injects dwds enable devtools launch configuraation', () async {
Copy link
Member

Choose a reason for hiding this comment

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

aa->a

Copy link
Member Author

Choose a reason for hiding this comment

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

I loathe my mac keyboard....

@@ -104,13 +104,15 @@ class Dwds {
bool serveDevTools,
UrlEncoder urlEncoder,
bool spawnDds = true,
Copy link
Member

Choose a reason for hiding this comment

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

nit: why do some of these have default values here while others use ??=?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because I didn't add that :P I prefer the ??= pattern while this package isn't migrated to null safety. Fixed.

Copy link
Member

@jacob314 jacob314 left a comment

Choose a reason for hiding this comment

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

lgtm

launchDevToolsJs();
}
});
if (dwdsEnableDevtoolsLaunch) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if this listener was interacting with any of the flutter keyboard support...

Copy link
Member Author

Choose a reason for hiding this comment

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

Possibly.

Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@grouma grouma merged commit 800f17c into master Mar 11, 2021
@grouma grouma deleted the disable-launch branch March 11, 2021 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants