Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions packages/amazonq/src/lsp/chat/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,10 +532,6 @@ async function handlePartialResult<T extends ChatResult>(
tabId: tabId,
})
}

for (const ref of decryptedMessage.codeReference ?? []) {
ReferenceLogViewProvider.instance.addReferenceLog(referenceLogText(ref))
}
}

/**
Expand All @@ -556,6 +552,8 @@ async function handleCompleteResult<T extends ChatResult>(
params: decryptedMessage,
tabId: tabId,
})

// only add the reference log once the request is complete, otherwise we will get duplicate log items
for (const ref of decryptedMessage.codeReference ?? []) {
ReferenceLogViewProvider.instance.addReferenceLog(referenceLogText(ref))
}
Expand Down
Loading