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

Merge commit for cherry-pick release 2.28.3 #6812

Merged
merged 9 commits into from
Nov 28, 2023
Merged

Merge commit for cherry-pick release 2.28.3 #6812

merged 9 commits into from
Nov 28, 2023

Conversation

kenzieschmoll
Copy link
Member

@kenzieschmoll kenzieschmoll commented Nov 21, 2023

Merge commit for DevTools 2.28.3 cherry pick release. Context: dart-lang/sdk#54085

kenzieschmoll and others added 7 commits November 17, 2023 13:58
add missing dependency

Fix release notes merge
)

* Use theme preference from IDE when embedded instead of preference

Currently the theme always comes from the preference and ignores what the IDE passes. Since there's no way to un-set the preference (or change it in the UI when embedded) this may prevent it matching the IDE.

This change always uses the IDE preference when embedded. It requires a change in VS Code to pass embed=true when embedding the sidebar since this was missing originally.
![](https://media.giphy.com/media/4URfklUToxk6A/giphy.gif)

Adds a fallback behaviour for copying which will allow copy buttons to actually work in VSCode.

NOTE: success toasts will no longer show in VSCode though.

I've also added some logging just in case a user is looking at their console when a copy fails. Hopefully this provides enough information that the unhide-able error doesn't look suspicious.
![Screenshot 2023-10-26 at 10 53 39 AM](https://github.com/flutter/devtools/assets/1386322/b4ebd139-f3f5-4dd6-8c62-794f7d6df80d)

Related to Dart-Code/Dart-Code#4814
Fixes #5775

Mirror package:web version from Flutter SDK
This should prevent a repeat of #6105 if an exception occurs while trying to open the page when embedded inside VS Code.
@kenzieschmoll kenzieschmoll requested review from bkonyi and a team as code owners November 21, 2023 16:41
@kenzieschmoll
Copy link
Member Author

@devoncarew or @godofredoc: can you please temporarily modify the flutter/devtools repository settings to allow merge commits at the repo level and remove "require linear history". Then I will land this PR by selecting "Create a merge commit" from the merge options below, and we can revert the settings change. Thanks!

@kenzieschmoll kenzieschmoll merged commit b145193 into master Nov 28, 2023
23 checks passed
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.

4 participants