You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Root cause: ImageCarouselEditorInput doesn't override getIcon(), so the modal label falls back to the default text-file icon.
Planned approach — same pattern as the search editor (searchEditorInput.ts) and chat debug editor (chatDebugEditorInput.ts):
constimageCarouselEditorIcon=registerIcon('image-carousel-editor-label-icon',Codicon.fileMedia,localize('imageCarouselEditorLabelIcon','Icon of the images preview editor label.'));// in ImageCarouselEditorInputoverridegetIcon(): ThemeIcon{returnimageCarouselEditorIcon;}
No other wiring is needed — modalEditorPart.ts already renders getIcon() in the label.
I'm proposing $(file-media) as the icon; happy to use a different codicon (e.g. $(device-camera)) if you have a preference.
Sharing media and context from merged PR #320951 for verification:
Problem
The Images Preview editor shows the default text-file icon in its modal header label, which doesn't represent image content:
Fix
ImageCarouselEditorInput never overrode getIcon(), so the label fell back to the default file icon. This change registers a dedicated icon and returns it from the input, following the same pattern used by other editor inputs (searchEditorInput.ts, chatDebugEditorInput.ts, extensionsInput.ts, etc.):
constimageCarouselEditorIcon=registerIcon('image-carousel-editor-label-icon',Codicon.fileMedia,localize('imageCarouselEditorLabelIcon','Icon of the images preview editor label.'));// in ImageCarouselEditorInputoverridegetIcon(): ThemeIcon{returnimageCarouselEditorIcon;}
Notes:
$(file-media) is proposed as the icon — happy to switch to a different codicon if preferred.
Registering through registerIcon keeps the icon overridable by product icon themes, consistent with the other editor label icons.
No rendering changes needed: the modal header (modalEditorPart.ts) already renders getIcon() via the resource label, and the icon is sized by the shared .monaco-icon-label styles like every other editor icon.
Activity
arun-357 commentedon Jun 11, 2026
Dmitriy Vasyura (@dmitrivMS) I'd like to work on this one. I've contributed two fixes in the image carousel area recently (#301984, #307446).
Root cause:
ImageCarouselEditorInputdoesn't overridegetIcon(), so the modal label falls back to the default text-file icon.Planned approach — same pattern as the search editor (
searchEditorInput.ts) and chat debug editor (chatDebugEditorInput.ts):No other wiring is needed —
modalEditorPart.tsalready rendersgetIcon()in the label.I'm proposing
$(file-media)as the icon; happy to use a different codicon (e.g.$(device-camera)) if you have a preference.dmitrivMS commentedon Jun 11, 2026
Arunachalam Nachiappan (@arun-357) Sounds good to me.
Lee Murray (@mrleemurray) Do you have suggestion on the icon?
dmitrivMS commentedon Jun 11, 2026
Arunachalam Nachiappan (@arun-357) You can proceed with PR, Lee can comment on it if he disagrees with icon choice.
mrleemurray commentedon Jun 11, 2026
We don't have an image specific icon (I will request one), but
file-mediacould work in the short term:mrleemurray commentedon Jun 11, 2026
cc davidhosejr (@davidhosejr) for ideas around an
image file typeiconarun-357 commentedon Jun 11, 2026
PR is open and ready for review whenever you get a chance, Dmitriy Vasyura (@dmitrivMS).
vs-code-engineering commentedon Jun 12, 2026
Sharing media and context from merged PR #320951 for verification:
Problem
The Images Preview editor shows the default text-file icon in its modal header label, which doesn't represent image content:

Fix
ImageCarouselEditorInputnever overrodegetIcon(), so the label fell back to the default file icon. This change registers a dedicated icon and returns it from the input, following the same pattern used by other editor inputs (searchEditorInput.ts,chatDebugEditorInput.ts,extensionsInput.ts, etc.):Notes:
$(file-media)is proposed as the icon — happy to switch to a different codicon if preferred.registerIconkeeps the icon overridable by product icon themes, consistent with the other editor label icons.modalEditorPart.ts) already rendersgetIcon()via the resource label, and the icon is sized by the shared.monaco-icon-labelstyles like every other editor icon.Before / After
Before:

After:


Source PR: #320951