-
Notifications
You must be signed in to change notification settings - Fork 82
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
Conversation
@@ -163,6 +163,12 @@ void main() { | |||
expect(result.body.contains('dummy-load-client-snippet'), isTrue); | |||
}); | |||
|
|||
test('Injects dwds enable devtools launch configuraation', () async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aa->a
There was a problem hiding this comment.
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....
dwds/lib/dwds.dart
Outdated
@@ -104,13 +104,15 @@ class Dwds { | |||
bool serveDevTools, | |||
UrlEncoder urlEncoder, | |||
bool spawnDds = true, |
There was a problem hiding this comment.
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 ??=
?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
launchDevToolsJs(); | ||
} | ||
}); | ||
if (dwdsEnableDevtoolsLaunch) { |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possibly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
cc @jonahwilliams
Related #1268 (comment)