Theia: Icons not based on file extension when file name contain "config"

Created on 15 May 2020  路  8Comments  路  Source: eclipse-theia/theia

Bug Description:

It seems that files with the text 'config' in their name gets special icon regardless of their suffix. For what it worth this does not happen on VS Code

Steps to Reproduce:

Create two files in project:

  1. gggconfig12.hdbvirtualtable
  2. ggg12.hdbvirtualtable

Expection: Both should have the same icon
Actual: They have different icons in explorer.

In theia:
image

In vscode:
image


Additional Information

  • Operating System: Windows
  • Theia Version: master
needs more info question theming

All 8 comments

@amiramw it is not truly a fair comparison (between theia and vscode) since you are not comparing with the same file-icon theme in both instances. This is what is seen when using seti (the default icon theme for vscode):

| Theia (Default Theme) | Theia (Seti Theme) |
|:---:|:---:|
| Screen Shot 2020-05-14 at 7 44 56 PM | Screen Shot 2020-05-14 at 7 44 43 PM |

We get the icons from file-icons.js, you can see why config files are displayed this way:

So no fix? One has to use seti theme as default?

We get the icons from file-icons.js, you can see why config files are displayed this way:

This. I confirm.

So no fix?

Once I had to introduce a custom WorkspaceUriLabelProviderContribution as a workaround in a downstream project, just because of the config part in the file name pulled in the config icon. I have not found a better fix at that time.

I've been wondering if we should have a better default file-icon theme as file-icons.js is not actively maintained (last release was over 3 years ago).

The alternative would be to fork the repo under theiaide and perform minor maintenance on it (such as customizing when the config icon is used), and perform releases to npm.

have a better default file-icon theme

Do you have anything in mind?

have a better default file-icon theme

Do you have anything in mind?

I could not find anything quickly to suit our needs, perhaps forking would be sufficient at the moment (and not require changes to the codebase).

@Kreyren wrote here:

image

Transfer from gitpod-io/gitpod#1570 as requested by @akosyakov

It's not a Theia issue. Closing.

Was this page helpful?
0 / 5 - 0 ratings