-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Fix: Fixed issue where soft link details were misaligned in git repos #16580
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
Fix: Fixed issue where soft link details were misaligned in git repos #16580
Conversation
|
From my observation if (isSymlink) is called before else if (isGitRepo), isGitRepo is true so I have just added a check in the isSymlink block. |
This reverts commit 516ceb2.
|
The icon is different which can be changed. By adding properties to GitItem(). Hopefully by tomorrow, something's wrong with my VS. Can I get this issue assigned to me? And if any other review please let me know. |
hishitetsu
left a comment
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.
This still leaves the alignment wrong for shortcut files (.lnk and .url).
I don't believe this approach is correct. The problem is that ShortcutItem doesn't support Git repositories, so we should create something like GitShortcutItem.
|
@ashrafmansuri Look at my earlier comment #15998 (comment) |
Alright. Understood. |
Yes I saw that. Your comment helped me a lot. So should I check for isGitRepo before or should I create a new item as suggested by @hishitetsu ? |
|
Yeah. Create a new class that derives from both ShortcutItem and GitItem named GitShortcutItem while this isn't ideal way. |
|
I'll create a new pull request |
Resolved / Related Issues
Steps used to test these changes
Stability is a top priority for Files and all changes are required to go through testing before being merged into the repo. Please include a list of steps that you used to test this PR.