Skip to content

Commit e8d3c3f

Browse files
committed
Clears all annotations in window mode only if user triggered
1 parent 84154cc commit e8d3c3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/annotations/fileAnnotationController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ export class FileAnnotationController implements Disposable {
244244
}
245245

246246
clear(editor: TextEditor, reason: AnnotationClearReason = 'User') {
247-
if (this.isInWindowToggle()) {
247+
if (this.isInWindowToggle() && reason === 'User') {
248248
return this.clearAll();
249249
}
250250

0 commit comments

Comments
 (0)