Przeglądaj źródła

Fixes #1225 - wrong line number used to find hunk

main
Eric Amodio 4 lat temu
rodzic
commit
7ef0815630
2 zmienionych plików z 2 dodań i 1 usunięć
  1. +1
    -0
      CHANGELOG.md
  2. +1
    -1
      src/hovers/hovers.ts

+ 1
- 0
CHANGELOG.md Wyświetl plik

@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
### Fixed
- Fixes [#1225](https://github.com/eamodio/vscode-gitlens/issues/1225) - Changes hover is wrong if the original/new line number doesn't match
- Fixes [#1045](https://github.com/eamodio/vscode-gitlens/issues/1045) - View File History not working - absolute path used — thanks to [PR #1209](https://github.com/eamodio/vscode-gitlens/pull/1209) by Mike Surcouf ([@mikes-gh](https://github.com/mikes-gh))
- Fixes [#1087](https://github.com/eamodio/vscode-gitlens/issues/1087) - Error retrieving line history from UNC path — thanks to [PR #1209](https://github.com/eamodio/vscode-gitlens/pull/1209) by Mike Surcouf ([@mikes-gh](https://github.com/mikes-gh))
- Fixes [#1176](https://github.com/eamodio/vscode-gitlens/issues/1176) - Can't selectively apply stash

+ 1
- 1
src/hovers/hovers.ts Wyświetl plik

@ -47,7 +47,7 @@ export namespace Hovers {
}
}
editorLine = commitLine.originalLine - 1;
editorLine = commitLine.line - 1;
// TODO: Doesn't work with dirty files -- pass in editor? or contents?
hunkLine = await Container.git.getDiffForLine(uri, editorLine, ref, documentRef, originalFileName);

Ładowanie…
Anuluj
Zapisz