-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Notification on outdated Rider package #2244
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.
Looks good. Just a few comments for things I wasn't sure about.
var notification = RiderNotification.Create(NotificationSeverity.WARNING, | ||
"JetBrains Rider package in Unity is missing.", | ||
"Make sure JetBrains Rider package is installed in Unity Package Manager." | ||
); | ||
myShellLocks.ExecuteOrQueueEx(lt, | ||
"RiderPackageUpdateAvailabilityChecker.ShowNotificationIfNeeded", | ||
() => | ||
{ | ||
myNotificationPopupHost.ShowNotification(lt, notification); | ||
}); |
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.
I think this can be simplified to just UserNotifications.CreateNotiification
. AFAICT, this will both create and show the notification with one API.
second attempt on #2223
https://youtrack.jetbrains.com/issue/RIDER-70591