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

Fix icon not found error while vs-code packaging #350

Merged
merged 1 commit into from
Nov 18, 2020
Merged

Fix icon not found error while vs-code packaging #350

merged 1 commit into from
Nov 18, 2020

Conversation

litanlitudan
Copy link
Contributor

Ran into the following error while doing yarn package-extension under folder foam-vscode
image
Turns out that vsce will somehow drop a default .vscodeignore, therefore seems the icon folder outside of foam-vscode is undetectable to vsce.
https://stackoverflow.com/questions/44423212/error-detecting-icon-when-publishing-vscode-extension

This error can be fixed by moving the icon folder into the foam-vscode folder.
image

Not sure whether this is a good practice though, since this icon might be shared with other non-vscode components in the codebase.

@jmg-duarte
Copy link
Member

jmg-duarte commented Nov 17, 2020

Not sure whether this is a good practice though, since this icon might be shared with other non-vscode components in the codebase.

Originally I didn't put the icon in the extension folder because of this, while it currently isn't, it is useful for people to quickly see the icon in the top level.

We could symlink it but it would probably break on Windows (?)

@litanlitudan
Copy link
Contributor Author

Not sure whether this is a good practice though, since this icon might be shared with other non-vscode components in the codebase.

Originally I didn't put the icon in the extension folder because of this, while it currently isn't, it is useful for people to quickly see the icon in the top level.

We could symlink it but it would probably break on Windows (?)

Do you prefer putting the link within the foam-vscode folder or the top of the project folder? Currently, I don't have a windows machine to try out, but I guess this might be a good idea.

Copy link
Collaborator

@riccardoferretti riccardoferretti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am happy with the icon in the foam-vscode folder. this is the only place where we need it now, we can always revisit in the future if necessary.

@riccardoferretti
Copy link
Collaborator

@all-contributors add @litanlitudan for code

@allcontributors
Copy link
Contributor

@riccardoferretti

I've put up a pull request to add @litanlitudan! 🎉

@riccardoferretti riccardoferretti merged commit 8710438 into foambubble:master Nov 18, 2020
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

Successfully merging this pull request may close these issues.

None yet

3 participants