I'm putting together a VSCode extension and I've already packaged up the .vsix
file a few times with no issue.
However, I've just added "icon": "images/icon.png"
to the package.json
and started getting an error message I just can't shake:
Error: The specified icon 'extension/images/icon.png' wasn't found in the extension.
The file definitely exists (though I don't quite understand why it looks for it under extension
as a hardcoded value).
I've tried setting the baseImagesUrl
in the command line for packaging, but it seems to have made no difference.
Any help/insight here would be appreciated :)
It turns out the default .vscodeignore
file that is dropped when you generate the extension boiler plate code has the images/**
file ignored. That stops the vsix package
command from pulling the icon into the package and it won't find it.
Hope this helps someone else!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With