Browse Source

Fixes missing changes hover

main
Eric Amodio 4 years ago
parent
commit
5b694faf8b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/hovers/hovers.ts

+ 2
- 2
src/hovers/hovers.ts View File

@ -34,7 +34,7 @@ export namespace Hovers {
ref = documentRef;
}
} else {
ref = documentRef ? commit.previousSha : commit.sha;
ref = commit.previousSha;
}
const line = editorLine + 1;
@ -49,7 +49,7 @@ export namespace Hovers {
editorLine = commitLine.originalLine - 1;
// TODO: Doesn't work with dirty files -- pass in editor? or contents?
hunkLine = await Container.git.getDiffForLine(uri, editorLine, ref, uri.sha, originalFileName);
hunkLine = await Container.git.getDiffForLine(uri, editorLine, ref, documentRef, originalFileName);
// If we didn't find a diff & ref is undefined (meaning uncommitted), check for a staged diff
if (hunkLine == null && ref == null) {

Loading…
Cancel
Save