Allow extensions to specify custom tree view resoure type#43261
Allow extensions to specify custom tree view resoure type#43261sandy081 merged 4 commits intomicrosoft:masterfrom
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. |
sandy081
left a comment
There was a problem hiding this comment.
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

.fsprojfiles:Fixes #43216