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

webview-codicons: Move codicons dependency from devDependencies into dependencies #1005

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

phil294
Copy link
Contributor

@phil294 phil294 commented Apr 15, 2024

This is the core information I needed from this sample folder: Where do I put the codicons / how are they required? Do I really need to ship the full .ttf file in my .vsix bundle, even though it is clearly already present in all VSCode installations?? The answer to this question is YES, and it would be clearer to see if the dependency were listed in dependencies, which is where they also really should be.

Apart from that, the sample doesn't compile properly when you try to make a demo bundle out of it: Change publisher to something else, run npx vsce package and inspect the resulting vsix file: It's missing the node_modules folder, which further confused me a lot. Not sure why or how to include it. There's also no .vscodeignore file present, because of which unnecessary stuff like the .ts files are also shipped along.

Sure, this sample isn't a full guideline, but it sure would be great if one could actually create a best-practice demo vsix here.

I'll also create an issue out of the above text in a second. Edit: No, I won't, there already is one: #692. This PR seems to fix it:

Fixes #692

Best regards

mjbvz
mjbvz previously approved these changes Oct 28, 2024
@vs-code-engineering vs-code-engineering bot added this to the November 2024 milestone Oct 28, 2024
@mjbvz mjbvz merged commit 6097cc7 into microsoft:main Oct 28, 2024
2 checks passed
@phil294
Copy link
Contributor Author

phil294 commented Oct 28, 2024

@mjbvz When merging main into this, the @vscode/codicons dependency got duplicated, now it's both in dependencies AND devDependencies. Probably not what you intended?

I mean it should still fix the issue but is a bit weird and annoying to maintain

@mjbvz
Copy link
Collaborator

mjbvz commented Oct 28, 2024

@phil294 thanks, fixed by #1117

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.

Packaging webview-codicons-sample doesn't package the codicons
3 participants