File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/vs/workbench/contrib/chat/common Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -884,6 +884,7 @@ export class ChatService extends Disposable implements IChatService {
884
884
} ) ;
885
885
}
886
886
} catch ( err ) {
887
+ this . logService . error ( `Error while handling chat request: ${ toErrorMessage ( err , true ) } ` ) ;
887
888
const result = 'error' ;
888
889
this . telemetryService . publicLog2 < ChatProviderInvokedEvent , ChatProviderInvokedClassification > ( 'interactiveSessionProviderInvoked' , {
889
890
timeToFirstProgress : undefined ,
@@ -899,10 +900,9 @@ export class ChatService extends Disposable implements IChatService {
899
900
numCodeBlocks : 0 ,
900
901
enableCommandDetection,
901
902
isParticipantDetected : ! ! detectedAgent ,
902
- attachmentKinds : this . attachmentKindsForTelemetry ( request . variableData ) ,
903
+ attachmentKinds : request ? this . attachmentKindsForTelemetry ( request . variableData ) : [ ] ,
903
904
model : this . resolveModelId ( options ?. userSelectedModelId )
904
905
} ) ;
905
- this . logService . error ( `Error while handling chat request: ${ toErrorMessage ( err , true ) } ` ) ;
906
906
if ( request ) {
907
907
const rawResult : IChatAgentResult = { errorDetails : { message : err . message } } ;
908
908
model . setResponse ( request , rawResult ) ;
You can’t perform that action at this time.
0 commit comments