Skip to content

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

Merged
Matt Bierner (mjbvz) merged 2 commits into
microsoft:mainfrom
phil294:codicon-dependency-type
Oct 28, 2024
Merged

Matt Bierner (mjbvz) merged 2 commits into
microsoft:mainfrom
phil294:codicon-dependency-type

Conversation

@phil294

@phil294 Philip Waritschlager (phil294) commented Apr 15, 2024 •

Copy link
Copy Markdown
Contributor

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

@vs-code-engineering vs-code-engineering Bot added this to the November 2024 milestone Oct 28, 2024
@mjbvz
Matt Bierner (mjbvz) merged commit 6097cc7 into microsoft:main Oct 28, 2024
@phil294

Copy link
Copy Markdown
Contributor Author

Matt Bierner (@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
Copy Markdown
Contributor

Philip Waritschlager (@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