Skip to content
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

Support using icons externally #3435

Open
1 task done
ShayBox opened this issue Jan 24, 2024 · 4 comments
Open
1 task done

Support using icons externally #3435

ShayBox opened this issue Jan 24, 2024 · 4 comments

Comments

@ShayBox
Copy link

ShayBox commented Jan 24, 2024

Housekeeping

  • I'm sure this issue is not a duplicate

Information:

Previously projects would use the atom icons repository because it was an actively maintained collection of file type icons that could be easily used on websites, but it's become unmaintained.

This has a better collection of icons and is being maintained for VSCode, but it's a typescript extension that's not as easy to use.

If there was some way to use the icons in an easy way, even just a single JSON or CSS file with the file extension mapped to the icon file name would make the efforts even more broadly usable.

@robertohuertasm
Copy link
Member

For now, you can clone and build the project and get a vsicons-icon-theme.json file in the dist > src folder.

@ShayBox
Copy link
Author

ShayBox commented Jan 24, 2024

I saw that, but it doesn't appear to have all the file extensions like language.ts does, for example the rust entry is missing the rs file extension in the json file.

@robertohuertasm
Copy link
Member

That's mainly because there are some icons that are not tied to a particular file extension but to a language id. That allows dedicated extensions to contribute with the proper file extensions, so we don't have to maintain and curate the list of extensions ourselves.

In the case of Rust, the language id is rust. You can see that the rust analyzer extension supports that language id and then defines the associated extensions: https://github.com/rust-lang/rust-analyzer/blob/master/editors/code/package.json#L1735

@robertohuertasm
Copy link
Member

The extensions in language.ts are not used at all. They're there mostly as a description field, but they're not a complete list of extensions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants