Преглед на файлове

Adds vscode issue TODO

main
Eric Amodio преди 7 години
родител
ревизия
6c33686335
променени са 3 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. +1
    -0
      src/annotations/annotationController.ts
  2. +1
    -0
      src/git/gitContextTracker.ts
  3. +1
    -0
      src/gitService.ts

+ 1
- 0
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

+ 1
- 0
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);
}

+ 1
- 0
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

Зареждане…
Отказ
Запис