-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
feat(settings): deeper checks for GitExtensions install directory #11913
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
feat(settings): deeper checks for GitExtensions install directory #11913
Conversation
* Check that the folder exists * Check that it is set to the currently running instance GE install path Make GE config more reliable. Related to gitextensions/gitextensions.vsix#33 (comment)
@@ -530,7 +530,13 @@ private bool CheckGitExtensionsInstall() | |||
return false; | |||
} | |||
|
|||
if (installDir.EndsWith(".exe")) | |||
if (installDir.EndsWith(".exe") || !Directory.Exists(installDir)) |
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.
It'd be great to have some comments here explaining the checks.
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.
Also, how would the user correct the incorrect setting?
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.
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.
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.
The Repair button is missing in the screenshot
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.
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.
Works as I expect
@@ -530,7 +530,13 @@ private bool CheckGitExtensionsInstall() | |||
return false; | |||
} | |||
|
|||
if (installDir.EndsWith(".exe")) | |||
if (installDir.EndsWith(".exe") || !Directory.Exists(installDir)) |
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.
Make GE config more reliable. Related to gitextensions/gitextensions.vsix#33 (comment)
Test methodology
Test environment(s)
Merge strategy
I agree that the maintainer squash merge this PR (if the commit message is clear).
✒️ I contribute this code under The Developer Certificate of Origin.