-
Notifications
You must be signed in to change notification settings - Fork 29.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
Allow extensions to specify custom tree view resoure type #43261
Allow extensions to specify custom tree view resoure type #43261
Conversation
@vbfox Thanks for the PR. Why not using the trailing slash to determine if the resource is a directory or not? |
I preferred to be explicit as the extension often know what type of resource it is and also to avoid breaking extensions that would have started to depend on the current behavior. But I can change it, It simplify the code a lot. |
@vbfox I do not think using a new property which is file specific is good idea as the tree is generic. Another idea is, since this is related to icon, overload
|
Another idea is to define a ThemeIcon and use it for icon.
|
I think I like the Especially if it also style as a file or folder without resource URI (In this case using the generic icons for file or folder) I'll take a shoot at implementing that |
@vbfox Thanks for considering that. I would prefer last solution of using |
The FileKind was previously guessed from the collapsability of the item, extensions now have the capability to set it manually. Fixes microsoft#43216
45227f2
to
03caa41
Compare
@sandy081 I did the changes, choose the name The multi process / saniziting was the most foreign thing for me so I hope I did it correctly:
|
@aeschli Would like to know your opinion on the name |
Should be ThemeIcon, like ThemeColor. |
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.
Changes look good to me. There are some minor comments about the API documentation and little tweaks in passing theme icon. Since today is the code freeze, I will merge this PR and do the little tweaks myself. I hope you do not mind with that.
Thanks
The FileKind was previously guessed from the collapsability of the item,
extensions now have the capability to set it manually.
Here the top level item come from vscode great icons theme for
.fsproj
files:Fixes #43216