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;