vscode-icons: `HTML` icon broken/missing

After the latest update, 4.2.0, the new svg version of the html icon doesn’t appear and instead defaults to the fallback “white-paper” icon.

Screenshot

2016-12-19 10_34_54-pick-list-input html - omneo-ui - visual studio code

VS Code info

Version: 1.8.0 Commit: 38746938a4ab94f2f57d9e1309c51fd6fb37553d Date: 2016-12-13T17:45:32.595Z Shell: 1.4.6 Renderer: 53.0.2785.143 Node: 6.5.0 Windows Version: 7 Enterprise SP1

DOM

<div class="monaco-icon-label file-icon index-name-file-icon html-ext-file-icon polymer-lang-file-icon explorer-item" title="C:\Repos\omneo-ui\app\index.html">
    <a class="label-name">index.html</a>
    <span class="label-description empty"></span>
</div>

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 15 (15 by maintainers)

Most upvoted comments

Figured it out @robertohuertasm. The language ID is overriding the extension icon but the fallback order for a missing icon is wrong.

Since I’m using language-polymer and associate all HTML files to that type, it’s trying to give it that icon (but there isn’t one), and instead of falling back to the extension, it falls back to the default icon.

"files.associations": {
    "*.html": "polymer",
    ".*rc": "json",
},

Just updated the issue with all that info, actually.