File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
workbench/contrib/chat/browser Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ export interface V8CallSite {
192
192
toString ( ) : string ;
193
193
}
194
194
195
- const canceledName = 'Canceled' ;
195
+ export const canceledName = 'Canceled' ;
196
196
197
197
/**
198
198
* Checks if the given error is a promise in canceled state
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ import { ChatMarkdownDecorationsRenderer } from './chatMarkdownDecorationsRender
78
78
import { ChatMarkdownRenderer } from './chatMarkdownRenderer.js' ;
79
79
import { ChatEditorOptions } from './chatOptions.js' ;
80
80
import { ChatCodeBlockContentProvider , CodeBlockPart } from './codeBlockPart.js' ;
81
+ import { canceledName } from '../../../../base/common/errors.js' ;
81
82
82
83
const $ = dom . $ ;
83
84
@@ -537,7 +538,7 @@ export class ChatListItemRenderer extends Disposable implements ITreeRenderer<Ch
537
538
content . push ( { kind : 'codeCitations' , citations : element . codeCitations } ) ;
538
539
}
539
540
540
- if ( element . errorDetails ?. message ) {
541
+ if ( element . errorDetails ?. message && element . errorDetails . message !== canceledName ) {
541
542
content . push ( { kind : 'errorDetails' , errorDetails : element . errorDetails , isLast : index === this . delegate . getListLength ( ) - 1 } ) ;
542
543
}
543
544
You can’t perform that action at this time.
0 commit comments