Open
Description
Issue Type: Feature Request
You can only pass an Uri or an object containing Uris to WebviewPanel.iconPath, while iconPath on QuickInputButton and TreeItem also supports ThemeIcon. This would increase codicon reusability.
VS Code version: Code 1.42.0 (ae08d54, 2020-02-06T10:51:34.058Z)
OS version: Windows_NT x64 10.0.18362
Activity
mjbvz commentedon Mar 5, 2020
@bpasero I believe we should change how editors get their icons to support this. My proposal is to add a
IEditorInput.icon
property that lets editor inputs set their icon directly instead of going through css rules based on the resource. This could also be used for our welcome page and a few other places in VS Code core that have to use css for this today:vscode/src/vs/workbench/contrib/welcome/page/browser/welcomePage.css
Line 223 in ceb8d83
bpasero commentedon Mar 6, 2020
Works for me.
28 remaining items