question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Default File Icon Association Only Works for "file"

See original GitHub issue
  • I’m sure this issue is not a duplicate.

The vsicons.associations.fileDefault.file setting only works with the "icon": "file". I’ve tried several different icons, with a variety of different formats (“svg”, “FileFormat.svg”, etc.) and everything other than file does not work. I’ve attached two screenshots demonstrating the issue.

vs-code-icons

vs-code-icons 2

I apologize if this is a duplicate question or is covered in the wiki. I’ve been searching through the repository and have not yet found a solution. I’m not sure if the issue is a bug, or is just a syntax error.

Any help is greatly appreciated. Thank you in advance. 👍

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JimiCcommented, Jan 25, 2018

@McPrescott The default file customization doesn’t support the overrides and extends functionality like the other icons do. Maybe this is a good opportunity to add them to it. In order to achieve what you want, you need to set up a vsicons-custom-icons folder and put the shell icon in there, as described in Custom Icons. Unfortunately, we only just a few days ago added the ability to set the vsicons-custom-icons folder path to a relative path to the project, using the vsicons.customIconFolderPath setting. So it’s not available yet. Now, it only works with providing an absolute path and this may not suit you.

I’m gonna leave this open until we release the new version. Hopefully, we may have added the above-mentioned functionality, for the default file too.

0reactions
JimiCcommented, Mar 19, 2018

I looked into adding extends functionality to the default files and folders but unfortunately, this is more complex than it looks and I’m afraid that it may destabilize the extension. Still, though the way to achieve what the OP wants is to create the vsicons-custom-icons folder as described in Custom Icons and copy inside it the preferred icon and name it accordingly (i.e.default_<value_of_icon_property>.<icon_file_extension>).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change the icon associated with a particular file format ...
Assign the DefaultIcon Sub Key a default value of type REG_SZ that specifies the fully qualified path for the file that contains the...
Read more >
How to Change the Icon for a File Type in Windows
Change the Default Icon For a File Type Using the Registry Editor. ... the file type associations, only the icon assigned to that...
Read more >
How to Assign a Custom Icon to a File Type - Win32 apps
Step 2: Assign the DefaultIcon subkey a default value of type REG_SZ that specifies the fully qualified path for the file that contains...
Read more >
Changing Default File Associations in Windows 10 and 11
In this article, we'll look at how to manage the default File Type Associations (FTA) on Windows 10/11 and Windows Server 2022/2019/2016.
Read more >
How to Change File Associations in Windows 10 | Digital Trends
1. Right-click on a file of the type you wish to change the association for. 2. Select Open With from the resulting menu....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found