File tree Expand file tree Collapse file tree
src/vs/workbench/contrib/chat/browser/attachments Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -454,8 +454,8 @@ export class ImageAttachmentWidget extends AbstractChatAttachmentWidget {
454454 this . element . ariaLabel = this . appendDeletionHint ( ariaLabel ) ;
455455
456456 // Wire up click + keyboard (Enter/Space) open handlers
457- const canOpenCarousel = attachment . value instanceof Uint8Array && configurationService . getValue < boolean > ( ChatConfiguration . ImageCarouselEnabled ) ;
458- if ( ( imageData && canOpenCarousel ) || resource ) {
457+ const canOpenCarousel = ! ! imageData && configurationService . getValue < boolean > ( ChatConfiguration . ImageCarouselEnabled ) ;
458+ if ( canOpenCarousel || resource ) {
459459 this . element . style . cursor = 'pointer' ;
460460 this . _register ( registerOpenEditorListeners ( this . element , async ( ) => {
461461 await clickHandler ( ) ;
You can’t perform that action at this time.
0 commit comments