I am developing a CustomEditor for VSCode to handle a precise file, like in the pawDraw example provided by the VSCode community.
I just would like to add a custom icon associated with the .pawdraw files.
I have tried to add in my package.json a rule like the example below. Unfortunately, it does not work for language id "catpawdraw" as it's not recognized as a language. I also have tried to provide a iconTheme but it removed all the present icon map (even if I made it extending vs-seti).
Here's an attempt for verilog that's working fine but when changing to pawDraw it's not:
{
"id": "c++",
"extensions": [".cpp"],
"aliases": [
"CPP File"
],
"filenames": [],
"icon": {
"light": "media/cpp_file_icon.png",
"dark": "media/cpp_file_icon.png"
}
}
Thank you for your time, I really appreciate any help.
[EDIT]:
I have first check if it was possible to change the icon associated to a file extension. I have tested for c++, and other languages what I had to do was to add a section in the package.json
a contributes.language
rule. As shown above I could specify the icon and it all worked fine. However, I am interrested into displaying a custumEditor
like the pawDraw provided by the vscode community. This editor handles .pawdraw files. So I thought that I could do the same as for c++, so I have put as id "custumpawdraw" and the fileextension that I was interrested into. However, it did not worked. My explanation is that the id
field refers to a existing language id but the "custumpawdraw" is not registered, so can't be. I might be wrong.