stackblitz / tutorialkit

TutorialKit by StackBlitz - Create interactive tutorials powered by the WebContainer API
https://tutorialkit.dev
MIT License
507 stars 49 forks source link

File extension based icons in `FileTree` #331

Closed AriPerkkio closed 1 month ago

AriPerkkio commented 2 months ago

Is your feature request related to a problem?

Icons of the files in file tree use same icon for every single file type.

Describe the solution you'd like.

Let's use file specific icons for files. Unknown extensions should fallback to the generic icon.

https://icon-sets.iconify.design/ph/?query=file-

Charan167 commented 1 month ago

Hello!! I've made the changes for this issue and wanted to get your thoughts on the icons before I push everything. Would you like me to share the code for a quick look, or should I just go ahead and push it?

AriPerkkio commented 1 month ago

@Charan167 could you create a pull request with the changes? Let's take a look at the code there and see if any changes are needed. 🙌

Charan167 commented 1 month ago

Hey! I've created a PR but it has failed some checks probably due to the multiline comment present in the file. I’d love to hear your thoughts on both the icons and the code itself so I can tweak things accordingly and push a better version.