Skip to content

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

Merged
auto-submit[bot] merged 4 commits into
flutter:masterfrom
DanTup:sidebar-open-in-browser
Nov 16, 2023
Merged

auto-submit[bot] merged 4 commits into
flutter:masterfrom
DanTup:sidebar-open-in-browser

Conversation

@DanTup

@DanTup DanTup commented Nov 15, 2023

Copy link
Copy Markdown
Contributor

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
@DanTup
DanTup requested a review from kenzieschmoll November 15, 2023 15:46
Comment thread packages/devtools_app/lib/src/standalone_ui/vs_code/debug_sessions.dart Outdated
disabledReason = 'Not available when running on the web';
}

Widget devToolsButton(

Copy link
Copy Markdown
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
Copy Markdown
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)

@kenzieschmoll kenzieschmoll left a comment

Copy link
Copy Markdown
Member

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

DanTup commented Nov 16, 2023

Copy link
Copy Markdown
Contributor Author

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).

@auto-submit

auto-submit Bot commented Nov 16, 2023

Copy link
Copy Markdown

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.

@auto-submit

auto-submit Bot commented Nov 16, 2023

Copy link
Copy Markdown

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

DanTup commented Nov 16, 2023

Copy link
Copy Markdown
Contributor Author

Failure is #6492, re-running...

@auto-submit
auto-submit Bot merged commit 0fb3892 into flutter:master Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants