-
Notifications
You must be signed in to change notification settings - Fork 36.7k
fix(chat): correct file icon rendering in Files & Folders picker #255384
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
Conversation
File icons were not displaying in the chat context Files & Folders picker while folder icons worked correctly. This was due to using iconClass instead of iconClasses property. The quick-input component has two icon rendering paths: - iconClass: applies classes to icon container element - iconClasses: applies classes to IconLabel component File icon themes require the specific CSS context provided by IconLabel, so file icons must use iconClasses to render properly. Changes: - Add iconClasses property to IChatContextPickerPickItem interface - Change FilesAndFoldersPickerPick to use iconClasses instead of iconClass - File icons now render correctly using proper DOM structure Fixes file icon display issue in chat context picker while maintaining backward compatibility with existing iconClass usage for simple codicons.
|
Just need to build vscode on my pc to verify it |
|
thanks! lgtm. |
|
looks like we approved this but we never merged it. we'll get this merged for next iteration. thanks @imbant ! |
|
Ping @justschen |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was NOT
With the changes applied, things look good:
Thanks @imbant for the right pointers.
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: @TylerLeonhardtMatched files:
|
Thanks for fixing it! Glad it helped. Would love to learn what additional changes were needed if you have time to share and what I can do for now as a newcomer! |
|
Yeah the change in e45528a |



File icons were not displaying in the chat context Files & Folders picker while folder icons worked correctly. This was due to using iconClass instead of iconClasses property.
The quick-input component has two icon rendering paths:
File icon themes require the specific CSS context provided by IconLabel, so file icons must use iconClasses to render properly.
Changes:
Fixes file icon display issue in chat context picker while maintaining backward compatibility with existing iconClass usage for simple codicons.