|
@ -96,7 +96,7 @@ export class GutterBlameAnnotationProvider extends BlameAnnotationProviderBase { |
|
|
this.decorations.push(gutter); |
|
|
this.decorations.push(gutter); |
|
|
|
|
|
|
|
|
if (avatars && !cfg.compact && commit !== undefined && commit.email !== undefined) { |
|
|
if (avatars && !cfg.compact && commit !== undefined && commit.email !== undefined) { |
|
|
this.addOrUpdateGravatarDecoration(commit, gutter.range, gravatarDefault, avatarDecorationsMap!); |
|
|
|
|
|
|
|
|
this.addOrUpdateAvatarDecoration(commit, gutter.range, gravatarDefault, avatarDecorationsMap!); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
continue; |
|
|
continue; |
|
@ -118,7 +118,7 @@ export class GutterBlameAnnotationProvider extends BlameAnnotationProviderBase { |
|
|
this.decorations.push(gutter); |
|
|
this.decorations.push(gutter); |
|
|
|
|
|
|
|
|
if (avatars && commit.email !== undefined) { |
|
|
if (avatars && commit.email !== undefined) { |
|
|
this.addOrUpdateGravatarDecoration(commit, gutter.range, gravatarDefault, avatarDecorationsMap!); |
|
|
|
|
|
|
|
|
this.addOrUpdateAvatarDecoration(commit, gutter.range, gravatarDefault, avatarDecorationsMap!); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
continue; |
|
|
continue; |
|
@ -135,7 +135,7 @@ export class GutterBlameAnnotationProvider extends BlameAnnotationProviderBase { |
|
|
this.decorations.push(gutter); |
|
|
this.decorations.push(gutter); |
|
|
|
|
|
|
|
|
if (avatars && commit.email !== undefined) { |
|
|
if (avatars && commit.email !== undefined) { |
|
|
this.addOrUpdateGravatarDecoration(commit, gutter.range, gravatarDefault, avatarDecorationsMap!); |
|
|
|
|
|
|
|
|
this.addOrUpdateAvatarDecoration(commit, gutter.range, gravatarDefault, avatarDecorationsMap!); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
decorationsMap[l.sha] = gutter; |
|
|
decorationsMap[l.sha] = gutter; |
|
@ -163,7 +163,7 @@ export class GutterBlameAnnotationProvider extends BlameAnnotationProviderBase { |
|
|
return true; |
|
|
return true; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
addOrUpdateGravatarDecoration( |
|
|
|
|
|
|
|
|
addOrUpdateAvatarDecoration( |
|
|
commit: GitBlameCommit, |
|
|
commit: GitBlameCommit, |
|
|
range: Range, |
|
|
range: Range, |
|
|
gravatarDefault: GravatarDefaultStyle, |
|
|
gravatarDefault: GravatarDefaultStyle, |
|
@ -178,7 +178,7 @@ export class GutterBlameAnnotationProvider extends BlameAnnotationProviderBase { |
|
|
|
|
|
|
|
|
map[commit.email!] = { |
|
|
map[commit.email!] = { |
|
|
decoration: window.createTextEditorDecorationType({ |
|
|
decoration: window.createTextEditorDecorationType({ |
|
|
gutterIconPath: commit.getGravatarUri(gravatarDefault), |
|
|
|
|
|
|
|
|
gutterIconPath: commit.getAvatarUri(gravatarDefault), |
|
|
gutterIconSize: '16px 16px', |
|
|
gutterIconSize: '16px 16px', |
|
|
}), |
|
|
}), |
|
|
ranges: [range], |
|
|
ranges: [range], |
|
|