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

Add support for "Open DevTools in Browser" in Sidebar menu #6736

Merged
merged 4 commits into from
Nov 16, 2023

Conversation

DanTup
Copy link
Contributor

@DanTup DanTup commented Nov 15, 2023

This adds a new entry to the DevTools menu in the sidebar to "Open in Browser" (matching the extra option for this when you run the "Open DevTools" command from the VS Code command palette):

image

This will open whatever the default page is in DevTools for this type of app, and will always open in a browser window regardless of the user-settings for embedded/external.

See #6563

@DanTup DanTup requested a review from a team as a code owner November 15, 2023 15:44
@DanTup DanTup requested review from bkonyi and removed request for a team November 15, 2023 15:44
disabledReason = 'Not available when running on the web';
}

Widget devToolsButton(
Copy link
Member

Choose a reason for hiding this comment

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

instead of using a helper method, can you create a helper widget like in my draft PR here: https://github.com/flutter/devtools/pull/6709/files#diff-e976c2386d5c7dc8f65bcad658ee5fba12faf0c519c2ad34664c78465fd9129fR275-R306

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done! (unfortunately you're going to have some conflicts here)

Copy link
Member

@kenzieschmoll kenzieschmoll left a comment

Choose a reason for hiding this comment

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

couple comments but lgtm

@DanTup
Copy link
Contributor Author

DanTup commented Nov 16, 2023

I made the requested changes - if there's any feedback on those changes, I'll address in another PR (I figure it's good to land this before our two conflicting PRs diverge further).

@DanTup DanTup added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 16, 2023
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Nov 16, 2023
Copy link

auto-submit bot commented Nov 16, 2023

auto label is removed for flutter/devtools/6736, due to - The status or check suite Dart Code Metrics has failed. Please fix the issues identified (or deflake) before re-applying this label.

@DanTup DanTup added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 16, 2023
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Nov 16, 2023
Copy link

auto-submit bot commented Nov 16, 2023

auto label is removed for flutter/devtools/6736, due to - The status or check suite devtools_app integration-test integration_dart2js - flutter - shard 3/3 has failed. Please fix the issues identified (or deflake) before re-applying this label.

@DanTup
Copy link
Contributor Author

DanTup commented Nov 16, 2023

Failure is #6492, re-running...

@DanTup DanTup added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 16, 2023
@auto-submit auto-submit bot merged commit 0fb3892 into flutter:master Nov 16, 2023
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App flutter sidebar
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants