-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[preferences] fix the display of file icons #7011
Conversation
@akosyakov do you know as to why the file-icon for the |
df90c0e
to
8978961
Compare
@vince-fugnitto one has to listen for changes on label provider and call getIcon again if a uri is affected |
8978961
to
55a5ce9
Compare
55a5ce9
to
b53cfca
Compare
I tested in gitpod with both Chrome and Firefox: File icons across all tabs in the preference editor now look consistent. Tested all 4 Icon themes, they all look good. |
Code-wise looks good, @elaihau could you finish the review please. |
Sure I will see what Vincent says regarding this comment #7011 (comment) |
Could you help me reproduce the problem you've experienced @elaihau ? I tried on my end with multiple different file-icon themes and experienced the following: Theia Seti Minimal None |
@vince-fugnitto this is what i see from gitpod. browser is Chrome. |
Thank you! I’ll take a look tomorrow at work :) |
@elaihau do you expect that the workspace file should display the |
b53cfca
to
3d5443b
Compare
i don't expect the code to be smart enough to detect json data from a file that doesn't have the ".json" extension. the question in my mind is: why is the workspace tab header and file icon displayed properly when the multi-root workspace is created, but refreshed into "Untitled.work-space" after the execution of "change file icon theme" command? like i said earlier, i am not sure if it is in the scope of this PR, and i am OK with not fixing this scenario |
i will approve this pr after you fix the travis biuld |
There seems to be an issue with the Windows build at the moment for multiple pull-requests :( |
What do you think should be the correct behavior, to display |
yea your latest css change shouldn't have the power of failing the build :)
as a user i would expect the tab header text "workspace" stays unchanged. |
I hope not haha :)
I'll see what I can do :) I believe vscode keeps it as |
3d5443b
to
5305211
Compare
@elaihau it should be fixed in the latest iteration :) |
yep, i played with it one more time and it looks good. |
Fixes #6990 Fixes #7010 - fixes an issue where the file icon was not properly displayed - fixes an issue where the file icon was not properly updated based on the current file icon theme. This problem is solved by programmatically getting the icon based on the `file-icon` using the `labelProvider#getIcon` method. Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
5305211
to
213ad77
Compare
What it does
Fixes #6990
Fixes #7010
based on the current file icon theme. This problem is solved by
programmatically getting the icon based on the
file-icon
usingthe
labelProvider#getIcon
method.TODO:user
file icon not being updated once a file icon theme change event occurs (this is probably due to how the user preferences editor is created).How to test
preferences widget
.file icon
theme (the settings tabs (user + workspace)) should properly be updated with the corresponding file icon theme and should also be displayed properly.Review checklist
Reminder for reviewers
Signed-off-by: vince-fugnitto vincent.fugnitto@ericsson.com