Skip to content

Commit 3957330

Browse files
authored
Merge pull request #14 from RefactorSecurity/fix-cancel-button
Fix comment body when canceling edit
2 parents 98f58ab + 156249c commit 3957330

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/helpers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const setNoteStatus = (
6060
};
6161

6262
const updateNoteStatus = (
63-
comment: vscode.Comment,
63+
comment: vscode.Comment | any,
6464
status: NoteStatus,
6565
firstComment: boolean,
6666
) => {
@@ -77,6 +77,7 @@ const updateNoteStatus = (
7777

7878
// Set new status
7979
comment.body = `[${status}] ${comment.body}`;
80+
comment.savedBody = comment.body;
8081
};
8182

8283
export const mergeThread = (local: vscode.CommentThread, remote: any): boolean => {

0 commit comments

Comments
 (0)