mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-16 10:58:34 -05:00
Allows line blame annotations on gitlens-git schemes
This commit is contained in:
@@ -121,7 +121,7 @@ export default class BlameActiveLineController extends Disposable {
|
|||||||
const previousEditor = this._editor;
|
const previousEditor = this._editor;
|
||||||
previousEditor && previousEditor.setDecorations(activeLineDecoration, []);
|
previousEditor && previousEditor.setDecorations(activeLineDecoration, []);
|
||||||
|
|
||||||
if (!e || !e.document || e.document.isUntitled ||
|
if (!e || !e.document || (e.document.isUntitled && e.document.uri.scheme !== DocumentSchemes.Git) ||
|
||||||
(e.document.uri.scheme !== DocumentSchemes.File && e.document.uri.scheme !== DocumentSchemes.Git) ||
|
(e.document.uri.scheme !== DocumentSchemes.File && e.document.uri.scheme !== DocumentSchemes.Git) ||
|
||||||
(e.viewColumn === undefined && !this.git.hasGitUriForFile(e))) {
|
(e.viewColumn === undefined && !this.git.hasGitUriForFile(e))) {
|
||||||
this.clear(e);
|
this.clear(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user