vscode-elements / elements

Web component library for developing Visual Studio Code extensions
https://vscode-elements.github.io
MIT License
156 stars 27 forks source link

Using vscode-tree component and vscode-icon didnit show #125

Closed lynnxyli closed 10 months ago

lynnxyli commented 10 months ago

I'm using vscode-tree component, the file tree rendered normally, but the icons didnt show even thought i set icons to the tree data;

image

the elements are like this

image

and i have already set csp like fontSrc: webview.cspSource, styleSrc: webview.cspSource,

the vscode-icon is normally shown when using https://github.com/microsoft/vscode-webview-ui-toolkit ,but not with this

bendera commented 10 months ago

Put this line to the <head> section:

<link rel="stylesheet" href="path/to/codicon.css" id="vscode-codicon-stylesheet" />

Let me know if it fixes your issue.

lynnxyli commented 10 months ago

Put this line to the <head> section:

<link rel="stylesheet" href="path/to/codicon.css" id="vscode-codicon-stylesheet" />

Let me know if it fixes your issue.

it fixes, tks!