Skip to content

Commit fc3c7d0

Browse files
committed
Fix thread deletion in local persistence
1 parent 98f58ab commit fc3c7d0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/extension.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ export function activate(context: vscode.ExtensionContext) {
108108
'security-notes.deleteNote',
109109
(thread: vscode.CommentThread) => {
110110
thread.dispose();
111+
if (thread.contextValue) {
112+
noteMap.delete(thread.contextValue);
113+
}
111114
},
112115
),
113116
);

0 commit comments

Comments
 (0)