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

Badge inspector tab for structured inspector errors (Flutter.error) #2576

Merged
merged 2 commits into from
Dec 30, 2020

Conversation

kenzieschmoll
Copy link
Member

@kenzieschmoll kenzieschmoll commented Dec 29, 2020

Screen Shot 2020-12-29 at 11 13 11 AM

Part of #173


final json = e.extensionData.data;
final objectId = json['objectId'] as String;
if (objectId?.contains('inspector-') ?? false) {
Copy link
Member Author

Choose a reason for hiding this comment

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

will this check include things we don't want to badge the inspector for? @jacob314

Copy link
Contributor

Choose a reason for hiding this comment

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

All object ids sent with errors will start with inspector- currently so this won't really check for much. I think just assuming any case with an objectId is an inspector error is fine for now. We could add a TODO to verify that the objectId is referring to an Element or Widget (may require another round trip unless the json also contains the object type which it may.

Copy link
Contributor

@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

@kenzieschmoll kenzieschmoll merged commit 1645c14 into flutter:master Dec 30, 2020
@kenzieschmoll kenzieschmoll deleted the inspector-badge branch December 30, 2020 17:58
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.

2 participants