Fixes issue with disabled caching

This commit is contained in:
Eric Amodio
2017-03-03 11:29:56 -05:00
parent bddf89bc35
commit c5c1e24c62

View File

@@ -106,6 +106,8 @@ export class GitProvider extends Disposable {
}
public getBlameability(fileName: string): boolean {
if (!this.UseGitCaching) return true;
const cacheKey = this.getCacheEntryKey(Git.normalizePath(fileName));
const entry = this._gitCache.get(cacheKey);
return !(entry && entry.hasErrors);