From fc09e3a70068d60143deb8a5b4de509fb0304141 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sat, 18 Feb 2017 16:30:53 -0500 Subject: [PATCH] Stops clearing broken blame on save Clears broken blame on close --- src/gitProvider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gitProvider.ts b/src/gitProvider.ts index 3eb22ec..ccf8190 100644 --- a/src/gitProvider.ts +++ b/src/gitProvider.ts @@ -187,8 +187,8 @@ export default class GitProvider extends Disposable { const cacheKey = this._getCacheEntryKey(fileName); - if (reason === RemoveCacheReason.DocumentClosed) { - // Don't remove broken blame on close (since otherwise we'll have to run the broken blame again) + if (reason === RemoveCacheReason.DocumentSaved) { + // Don't remove broken blame on save (since otherwise we'll have to run the broken blame again) const entry = this._gitCache.get(cacheKey); if (entry && entry.hasErrors) return; }