Skip to content

Commit

Permalink
fix: remove the incorrect accept and reject buttons while hovering ov…
Browse files Browse the repository at this point in the history
…er the generated file (#5239)
  • Loading branch information
KevinDing1 authored Jan 9, 2025
1 parent f5ed158 commit 026056a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type" : "bugfix",
"description" : "Fix incorrect accept and reject buttons shows up while hovering over the generated file"
}
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ export class Connector {

private processCodeResultMessage = async (messageData: any): Promise<void> => {
if (this.onChatAnswerReceived !== undefined) {
const actions = getActions([...messageData.filePaths, ...messageData.deletedFiles])
const answer: ChatItem = {
type: ChatItemType.ANSWER,
relatedContent: undefined,
Expand All @@ -209,8 +208,7 @@ export class Connector {
fileTreeTitle: 'Documents ready',
rootFolderTitle: 'Generated documentation',
filePaths: (messageData.filePaths as DiffTreeFileInfo[]).map(path => path.zipFilePath),
deletedFiles: (messageData.deletedFiles as DiffTreeFileInfo[]).map(path => path.zipFilePath),
actions,
deletedFiles: (messageData.deletedFiles as DiffTreeFileInfo[]).map(path => path.zipFilePath)
},
body: '',
}
Expand Down

0 comments on commit 026056a

Please sign in to comment.