-
Notifications
You must be signed in to change notification settings - Fork 10
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
How to use this package? #5
Comments
Hi, thank you very much for filing an issue. This extension is inspired by file-icon-js. vscode-icons-js only returns name of corresponding For example In order to make this all works, you have to download all icons from vscode-icons/icons and put them somewhere on your server. EDIT: github-vscode-icons for "real-world" example |
I created repo with an example how to use or directly to source code: https://github.com/dderevjanik/vscode-icons-js-example/blob/master/src/Index.tsx |
👋 Thanks for the fast response. In your chrome extension, how are you handling updates to vscode-icons/icons? Automated? EDIT: thanks for posting that example, it is very helpful! My use case (or what i'd like it to look like) is as follows:
const path = `../../{iconForFile}`
I am using this approach currently and it works, however, i'd prefer to have a more programmatic way to access the most current icon. Nice work BTW 👍 |
Currenly, I'm doing it manually 😞 , but there's already an issue regarding this vscode-icons/vscode-icons#1437 to automatically update icons and Yeah, I'll try to make it in a more programmatic way as you pointed. |
Have you had a chance to talk with JimiC about this (since PR #1470 was merged in |
In general, it's easier to talk with somebody instead of over somebody. ;) Just drop in a question in that PR or open an issue. (Member of the vscode-icons Team) |
@dderevjanik I'm going to have a look at this in the next days and see what can be done to automate the entire publishing process. |
@dderevjanik I looked into this and I was compelled to write a new project providing an API for |
Hm, so did you write a project? I was inspired with @iconify-icons/vscode-icons package and published https://github.com/zardoy/vscode-icons-ts to npm with icons included. 100% extracted and generated automaitally. |
How do consumers of this package actually render the icon desired? I've spent about an hour trying to get something working but it seems this doesn't include and SVG files or provide an API to lookup the correct icon using the result of
getIconForFile(file)
.Am I using this incorrectly?
Thanks
The text was updated successfully, but these errors were encountered: