Fixes regression with code lens

This commit is contained in:
Eric Amodio
2017-06-12 10:33:05 -04:00
parent c1c65127b7
commit 5624567daa
2 changed files with 3 additions and 3 deletions

View File

@@ -486,7 +486,7 @@ export class GitService extends Disposable {
const authors: Map<string, GitAuthor> = new Map();
const commits: Map<string, GitBlameCommit> = new Map();
for (const c of blame.commits.values()) {
if (!shas.has(c.sha)) return;
if (!shas.has(c.sha)) continue;
const commit = new GitBlameCommit(c.repoPath, c.sha, c.fileName, c.author, c.date, c.message,
c.lines.filter(l => l.line >= range.start.line && l.line <= range.end.line), c.originalFileName, c.previousSha, c.previousFileName);