瀏覽代碼

Fixes #2000 File changes fail to display properly

main
Eric Amodio 2 年之前
父節點
當前提交
ee3e5cf960
共有 2 個文件被更改,包括 3 次插入4 次删除
  1. +1
    -0
      CHANGELOG.md
  2. +2
    -4
      src/annotations/gutterChangesAnnotationProvider.ts

+ 1
- 0
CHANGELOG.md 查看文件

@ -25,6 +25,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
## Fixed
- Fixes [#2000](https://github.com/gitkraken/vscode-gitlens/issues/1936) - File Changes annotations fail to display in certain cases
- Fixes [#1936](https://github.com/gitkraken/vscode-gitlens/issues/1936) - Broken repositories view
- Fixes [#1882](https://github.com/gitkraken/vscode-gitlens/issues/1882) - Blame annotations not showing anymore after update
- Fixes [#1787](https://github.com/gitkraken/vscode-gitlens/issues/1787) - Remove '-review' from Gerrit Remote reviewDomain() — thanks to [PR #1954](https://github.com/gitkraken/vscode-gitlens/pull/1954) by Felipe Santos ([@felipecrs](https://github.com/felipecrs))

+ 2
- 4
src/annotations/gutterChangesAnnotationProvider.ts 查看文件

@ -181,14 +181,12 @@ export class GutterChangesAnnotationProvider extends AnnotationProviderBase
const sha = context!.sha;
for (let i = hunk.current.position.start - 1; i < hunk.current.position.end; i++) {
if (blame.lines[i].sha === sha) {
if (blame.lines[i]?.sha === sha) {
skip = false;
}
}
if (skip) {
continue;
}
if (skip) continue;
}
// Subtract 2 because editor lines are 0-based and we will be adding 1 in the first iteration of the loop

Loading…
取消
儲存