mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-19 09:45:36 -05:00
Adds .gitignore checks to reduce blame calls
Caches failed blames to reduce blame calls Only clear failed blames from cache on change/save Add better error messages and handling
This commit is contained in:
@@ -90,7 +90,7 @@ export default class GitBlameContentProvider implements TextDocumentContentProvi
|
||||
|
||||
clearInterval(handle);
|
||||
this.git.getBlameForShaRange(data.fileName, data.sha, data.range).then(blame => {
|
||||
if (!blame.lines.length) return;
|
||||
if (!blame || !blame.lines.length) return;
|
||||
|
||||
editor.setDecorations(this._blameDecoration, blame.lines.map(l => {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user