-
Notifications
You must be signed in to change notification settings - Fork 329
[DeviceSelectorAction] 🐛 Replace the action list without concurrent modification #8550
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
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.
Thanks for the fix! I follow what's happening here, but I'm hoping we can start a new practice of adding some debug-level logs for these situations where concurrency can make things confusing. Could you (or AI) add some here that will show what's happening in updateActions
? and then show what happens in a successful case? I'll add a few examples.
Logs were added |
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.
Thanks! Looks good. Just fix the class name.
import java.util.List; | ||
|
||
public class DeviceSelectorAction extends AnAction implements CustomComponentAction, DumbAware { | ||
private static final @NotNull Logger LOG = PluginLogger.createLogger(FlutterDoctorAction.class); |
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.
DeviceSelectorAction
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.
Thanks for the good catch!
This comment was marked as outdated.
This comment was marked as outdated.
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!
Fixes #8544
Contribution guidelines:
dart format
.