Browse Source

Allows window annotations to always toggle

main
Eric Amodio 2 years ago
parent
commit
3712aa0f22
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/annotations/fileAnnotationController.ts

+ 1
- 1
src/annotations/fileAnnotationController.ts View File

@ -362,7 +362,7 @@ export class FileAnnotationController implements Disposable {
context?: AnnotationContext | ChangesAnnotationContext,
on?: boolean,
): Promise<boolean> {
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;

Loading…
Cancel
Save