瀏覽代碼

Allows window annotations to always toggle

main
Eric Amodio 2 年之前
父節點
當前提交
3712aa0f22
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/annotations/fileAnnotationController.ts

+ 1
- 1
src/annotations/fileAnnotationController.ts 查看文件

@ -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…
取消
儲存