You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provide a list of deduped and nicely named codicons for use in product #171076
Also would it be possible to add the list of icons of the most common languages to our Codicons?
I know Chris Dias (@chrisdias) wanted to use a Python icon for his "Python 101" profile. And I think that makes sense.
While the Codicons offers a quick way to get a nice selection of icons, I think not all of the ids are useful and well chosen.
What about having a curated list of the ones that are meaningful in the context of terminal/user profile?
That allows you to add descriptions as well.
If you want to allow that extensions can contribute new icons, use the iconRegistry (IIconRegistry) instead. Have a name convention for your icons so you can also pick up contributed icons.
changed the title [-]Provide a list of deduped and nicely names codicons for use in product[/-][+]Provide a list of deduped and nicely named codicons for use in product[/+]on Oct 9, 2023
Daniel Imms (@Tyriar) can you automate this? Most look like they make sense with some string transformation. Then we can override the ones that don't make sense.
Martin Aeschlimann (@aeschli) is this something we do with theme icons somewhere or is it new territory to get a well formed list of icons to present to the user?
Reference to the codicon to use as default icon. You can register as many as you want and give them a nice description.
use a convention on the icon id, e.g start with terminal-viewicon. Extensions that contribute icons can also use that prefix so they show up in your icon picker.
It's a big list but now it's deduped, curated, and you have description that describe the icon and not the operation
This allows theme authors to individually design icons for each component. E.g some theme could decide to give all terminal icons a certain look.
I don't think any migration is needed, existing views that used a codicon name can continue to do so, just your picker now only shows icons from the curated list (maybe plus the old codicon)
Activity
isidorn commentedon Jan 13, 2023
Also would it be possible to add the list of icons of the most common languages to our Codicons?
I know Chris Dias (@chrisdias) wanted to use a Python icon for his "Python 101" profile. And I think that makes sense.
aeschli commentedon Jan 13, 2023
While the Codicons offers a quick way to get a nice selection of icons, I think not all of the ids are useful and well chosen.
What about having a curated list of the ones that are meaningful in the context of terminal/user profile?
That allows you to add descriptions as well.
If you want to allow that extensions can contribute new icons, use the iconRegistry (IIconRegistry) instead. Have a name convention for your icons so you can also pick up contributed icons.
`registerIcon('terminal-viewicon-cloud', Codicon.cloud, 'Cloud') ...
daviddossett commentedon Jan 13, 2023
It may also be nice to allow for emojis as well. Although I think at one point this was possible?
Tyriar commentedon Jan 17, 2023
David Dossett (@daviddossett) emoji can be used where text is used, I dislike when extensions do this though as they're the only non-monochrome icons in the UI and stand out like a sore thumb. For example: https://github.com/MicrosoftDocs/live-share/issues/4185
sandy081 commentedon Sep 7, 2023
This is done by Hylke Bons (@hbons) here - #188972
Hence closing this.
Tyriar commentedon Sep 7, 2023
This should be closed when it's compatible with the terminal (no debian, ubuntu, etc.?) and it's adopted in the terminal icon picker.
[-]Provide a list of deduped and nicely names codicons for use in product[/-][+]Provide a list of deduped and nicely named codicons for use in product[/+]hbons commentedon Dec 4, 2023
Daniel Imms (@Tyriar) can you automate this? Most look like they make sense with some string transformation. Then we can override the ones that don't make sense.
Tyriar commentedon Dec 4, 2023
At least at the Codicon level there isn't a marked primary id:
vscode/src/vs/base/common/codicons.ts
Lines 46 to 49 in dfc3625
Martin Aeschlimann (@aeschli) is this something we do with theme icons somewhere or is it new territory to get a well formed list of icons to present to the user?
aeschli commentedon Dec 5, 2023
We have all that already. Use the image registry to register a set of icons suited for terminals view.
registerIcon('terminal-viewicon-cloud', Codicon.cloud, 'Cloud') ...Reference to the codicon to use as default icon. You can register as many as you want and give them a nice description.
terminal-viewicon. Extensions that contribute icons can also use that prefix so they show up in your icon picker.Sandeep Somavarapu (@sandy081) I suggest the same for profiles
Tyriar commentedon Dec 5, 2023
I used
iconRegistry.getIcons()but the list wasn't deduped as expected:Gave:
Proof description is working: