Skip to content

Notification on Rider package update availability #2223

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

Closed
wants to merge 13 commits into from

Conversation

van800
Copy link
Member

@van800 van800 commented Nov 26, 2021

@citizenmatt what do you think?

The idea is to have both hard-coded expected version of the Rider package (3.0.7) and if protocol is available, we call the code on the EditorPlugin side to get more accurate newest compatible expected version.

@van800 van800 added the WIP Work in progress. Do not merge! label Nov 26, 2021
@van800 van800 added this to the Rider 2022.1 milestone Nov 26, 2021
@van800 van800 self-assigned this Nov 26, 2021
@van800 van800 changed the base branch from net213 to net221 November 26, 2021 09:57
if (id == myHyperlinkId)
{
mySettingsStore.BindToContextTransient(ContextRange.ManuallyRestrictWritesToOneContext(mySolution.ToDataContext()))
.SetValue((UnitySettings key) => key.AllowRiderUpdateNotifications, false);
Copy link
Member

Choose a reason for hiding this comment

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

This writes to .sln.DotSettings, doesn't it? Might be better to use the persistent solution properties, which are stored in the ReSharper cache folder, rather than the user's settings.

Copy link
Member Author

@van800 van800 Nov 27, 2021

Choose a reason for hiding this comment

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

It goes to .sln.DotSettings.user

Copy link
Member Author

Choose a reason for hiding this comment

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

If I start using persistent solution properties, how user would enable it back if occasionally turn off with the link in the popup? In the current implementation, I have a setting with a checkbox in the Preferences.

@citizenmatt
Copy link
Member

Nice! I like the idea of checking with the registry - that helps with the scenario of a newer Unity and older Rider.

This will show the notification in Rider. Are we interested in showing it in Unity at all? I'm not sure if they have a notifications API, but we can add something to the log? Or do you think it's best to just keep it in Rider?

@van800
Copy link
Member Author

van800 commented Nov 26, 2021

Nice! I like the idea of checking with the registry - that helps with the scenario of a newer Unity and older Rider.

This will show the notification in Rider. Are we interested in showing it in Unity at all? I'm not sure if they have a notifications API, but we can add something to the log? Or do you think it's best to just keep it in Rider?

I want to keep it in Rider only.

@van800 van800 removed the WIP Work in progress. Do not merge! label Nov 29, 2021
@van800 van800 added the WIP Work in progress. Do not merge! label Dec 17, 2021
@van800 van800 closed this Jan 14, 2022
@citizenmatt citizenmatt deleted the net221-rider-package-notify branch April 26, 2022 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WIP Work in progress. Do not merge!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants