-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
navigator-decorator: add symlink icon and tooltip to symlinked files in navigator #10439
Conversation
9e386f0
to
805b569
Compare
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 feature looks good to me and most of the code as well. I have one suggestion to the code though, as we also had recent discussions on constructor vs. field injection during the dev-meetings.
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 believe it is currently difficult to do in the framework, the same is true for badges such as
The issue is unrelated, due to #8352 we treat all folder nodes where decorations are present to display the generic dot decoration. |
@Archie27376, as per the clarifications from Vince, |
fa8617e
to
2b9457c
Compare
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 changes look good to me 👍
- the symlink decoration is added to the navigator
- the decoration and tooltip work well
@kenneth-marut-work what would be needed in order to apply the same decoration from the navigator to the open-editors, I would assume they should share decoration contributions?
Should hopefully be as simple as adding Happy to give it a review once that's implemented |
Looks like the decorators applied nicely to open editors. I didn't notice any issues with this PR when testing (including deleting symlinked files). Nice work |
This commit adds a new decorator for the file navigator. It displays a downward right curved arrow at the tail of a file node if that file contains a symbolic link. A tooltip is also added displaying "Symbolic Link" when hovering over a symbolic linked file node's tail icon, and will display the file's path only when hovering over the file itself.
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 have verified that the symlink decorators apply as expected in the explorer view as well as in open editors, the tooltip in the Explorer view clearly indicates it's a symbolic link 👍
The code looks good to me!!
What it does
This commit adds a new decorator for the file navigator.
It displays a downward right curved arrow at the tail of a file node if that file contains a symbolic link.
A tooltip is also added displaying "Symbolic Link" when hovering over a symbolic linked file node's tail icon.
Hovering over the file itself will display the file path only.
How to test
Review checklist
Reminder for reviewers