From 3712aa0f22bd3db06ef21b5cb1f695761b22da35 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 3 Aug 2022 01:14:09 -0400 Subject: [PATCH] Allows window annotations to always toggle --- src/annotations/fileAnnotationController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/annotations/fileAnnotationController.ts b/src/annotations/fileAnnotationController.ts index d2c274a..b4bb695 100644 --- a/src/annotations/fileAnnotationController.ts +++ b/src/annotations/fileAnnotationController.ts @@ -362,7 +362,7 @@ export class FileAnnotationController implements Disposable { context?: AnnotationContext | ChangesAnnotationContext, on?: boolean, ): Promise { - if (editor != null) { + if (editor != null && this._toggleModes.get(type) === AnnotationsToggleMode.File) { const trackedDocument = await this.container.tracker.getOrAdd(editor.document); if ((type === FileAnnotationType.Changes && !trackedDocument.isTracked) || !trackedDocument.isBlameable) { return false;