From 6c3368633533d621fa23ecb1fa84057b39525ea4 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Tue, 6 Jun 2017 02:29:22 -0400 Subject: [PATCH] Adds vscode issue TODO --- src/annotations/annotationController.ts | 1 + src/git/gitContextTracker.ts | 1 + src/gitService.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/src/annotations/annotationController.ts b/src/annotations/annotationController.ts index 995513e..7d81f95 100644 --- a/src/annotations/annotationController.ts +++ b/src/annotations/annotationController.ts @@ -233,6 +233,7 @@ export class AnnotationController extends Disposable { for (const [key, p] of this._annotationProviders) { if (!TextDocumentComparer.equals(p.document, e.document)) continue; + // TODO: Rework this once https://github.com/Microsoft/vscode/issues/27231 is released in v1.13 // We have to defer because isDirty is not reliable inside this event setTimeout(() => { // If the document is dirty all is fine, just kick out since the GitContextTracker will handle it diff --git a/src/git/gitContextTracker.ts b/src/git/gitContextTracker.ts index f40b547..6b21d07 100644 --- a/src/git/gitContextTracker.ts +++ b/src/git/gitContextTracker.ts @@ -75,6 +75,7 @@ export class GitContextTracker extends Disposable { // this._unsubscribeToDocumentChanges(); // this.updateBlameability(false); + // TODO: Rework this once https://github.com/Microsoft/vscode/issues/27231 is released in v1.13 // We have to defer because isDirty is not reliable inside this event setTimeout(() => this._updateBlameability(!e.document.isDirty), 1); } diff --git a/src/gitService.ts b/src/gitService.ts index 7962968..ca77d87 100644 --- a/src/gitService.ts +++ b/src/gitService.ts @@ -214,6 +214,7 @@ export class GitService extends Disposable { if (!this.UseCaching) return; if (e.document.uri.scheme !== DocumentSchemes.File) return; + // TODO: Rework this once https://github.com/Microsoft/vscode/issues/27231 is released in v1.13 // We have to defer because isDirty is not reliable inside this event setTimeout(() => { // If the document is dirty all is fine, we'll just wait for the save before clearing our cache