File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/amazonq/src/lsp/chat Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -532,10 +532,6 @@ async function handlePartialResult<T extends ChatResult>(
532532 tabId : tabId ,
533533 } )
534534 }
535-
536- for ( const ref of decryptedMessage . codeReference ?? [ ] ) {
537- ReferenceLogViewProvider . instance . addReferenceLog ( referenceLogText ( ref ) )
538- }
539535}
540536
541537/**
@@ -556,6 +552,8 @@ async function handleCompleteResult<T extends ChatResult>(
556552 params : decryptedMessage ,
557553 tabId : tabId ,
558554 } )
555+
556+ // only add the reference log once the request is complete, otherwise we will get duplicate log items
559557 for ( const ref of decryptedMessage . codeReference ?? [ ] ) {
560558 ReferenceLogViewProvider . instance . addReferenceLog ( referenceLogText ( ref ) )
561559 }
You can’t perform that action at this time.
0 commit comments