Skip to content

Image carousel shows UUID on hover #301984

Closed

Description

Testing #301610

When hovering on the "Image Carousel" title, a UUID is shown. Opening the image carousel on the same image several times in a row always shows a different UUID. We should remove this UUID being shown

Image

Activity

  1. vs-code-engineering commented on Mar 16, 2026

    @vs-code-engineering
    Contributor

    Hi Giuseppe Cianci (@Giuspepe). As a member of the team, you can help us triage this issue by referring to https://github.com/microsoft/vscode-copilot/wiki/Copilot-Inbox-Tracker and assigning an owner directly.

  2. added
    bug
    on Mar 17, 2026
  3. arun-357 commented on Jun 10, 2026

    @arun-357
    Contributor

    Hi, I'm an external contributor and would love to take a stab at this if it's still open — happy to dig into the image carousel code and remove the UUID from the hover tooltip. Would that be welcome? Dmitriy Vasyura (@dmitrivMS)

  4. dmitrivMS commented on Jun 10, 2026

    @dmitrivMS
    Collaborator
  5. arun-357 commented on Jun 10, 2026

    @arun-357
    Contributor

    Hi, I've put together a fix for this — PR is open and ready for review whenever you get a chance. Dmitriy Vasyura (@dmitrivMS)

  6. added
    unreleased
    on Jun 10, 2026
  7. vs-code-engineering commented on Jun 10, 2026

    @vs-code-engineering
    Contributor

    Sharing media and context from merged PR #320739 for verification:

    Problem

    Hovering the image carousel title in the modal header shows a raw UUID, and the UUID changes every time the carousel is reopened.

    Root cause:

    • Each carousel open generates a fresh collection id via generateUuid() (imageCarousel.contribution.ts), which ImageCarouselEditorInput turns into its resource URI: vscode-imagecarousel:///<uuid>.
    • The modal header label (updateLabel() in modalEditorPart.ts) calls ResourceLabel.setResource() without a title option.
    • With no title provided, ResourceLabelWidget.render() (labels.ts) falls back to labelService.getUriLabel(resource) for the tooltip — i.e. the UUID URI.

    Fix

    Pass title: activeEditor.getTitle(Verbosity.LONG) in the ResourceLabel options for the modal header, mirroring how editor tabs set their hover (multiEditorTabsControl.ts, editorTabsControl.ts#getHoverTitle).

    This makes the modal header hover behave like existing non-file editor tabs — e.g. the Settings editor tab, whose hover shows "Settings" (its getTitle(Verbosity.LONG) falls back to getName()). The carousel hover now shows its stable title ("Image Carousel" / "Images Preview") instead of a per-open UUID.

    The fix applies to all modal editor inputs (chat management, agent plugin, workspace trust, etc.), not just the image carousel. File editors opened modally (workbench.editor.useModal: "all") keep their useful full-path hover, since FileEditorInput.getTitle(Verbosity.LONG) returns the full path — no behavior change there.

    Before / After

    Before:
    uuid2

    After:
    uuid1

    Verification

    • Right-click an image in the Explorer → Open in Images Preview → hover the modal title: shows the title, not a UUID; stable across reopens.
    • Regression check with "workbench.editor.useModal": "all": a file opened in the modal still shows its full path on hover.
    • compile-check-ts-native and ESLint pass.

    Source PR: #320739

  8. added
    insiders-released
    and removed
    unreleased
    on Jun 11, 2026
  9. locked and limited conversation to collaborators on Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugimage-carouselinsiders-releasedverified

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions