File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/vs/workbench/contrib/chat/browser Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -992,9 +992,9 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
992992 const hoverDelegate = store . add ( createInstantHoverDelegate ( ) ) ;
993993
994994 const attachments = [ ...this . attachmentModel . attachments . entries ( ) ] ;
995- dom . setVisibility ( Boolean ( attachments . length ) || ( this . addFilesToolbar && ! this . addFilesToolbar . isEmpty ( ) ) || Boolean ( this . implicitContext ?. value ) || ! this . instructionAttachmentsPart . empty , this . attachmentsContainer ) ;
996- dom . setVisibility ( Boolean ( attachments . length ) , this . attachedContextContainer ) ;
997-
995+ const hasAttachments = Boolean ( attachments . length ) || Boolean ( this . implicitContext ?. value ) || ! this . instructionAttachmentsPart . empty ;
996+ dom . setVisibility ( Boolean ( hasAttachments || ( this . addFilesToolbar && ! this . addFilesToolbar . isEmpty ( ) ) ) , this . attachmentsContainer ) ;
997+ dom . setVisibility ( hasAttachments , this . attachedContextContainer ) ;
998998 if ( ! attachments . length ) {
999999 this . _indexOfLastAttachedContextDeletedWithKeyboard = - 1 ;
10001000 }
You can’t perform that action at this time.
0 commit comments