Skip to content

Commit ee21e63

Browse files
authored
Git - only show git blame for text documents with the file scheme for now (microsoft#234312)
1 parent 5b9c658 commit ee21e63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/git/src/blame.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ class GitBlameEditorDecoration {
305305
}
306306

307307
const blameInformation = this._controller.textEditorBlameInformation.get(textEditor);
308-
if (!blameInformation) {
308+
if (!blameInformation || textEditor.document.uri.scheme !== 'file') {
309309
textEditor.setDecorations(this._decorationType, []);
310310
return;
311311
}
@@ -393,7 +393,7 @@ class GitBlameStatusBarItem {
393393
}
394394

395395
const blameInformation = this._controller.textEditorBlameInformation.get(textEditor);
396-
if (!blameInformation || blameInformation.length === 0) {
396+
if (!blameInformation || blameInformation.length === 0 || textEditor.document.uri.scheme !== 'file') {
397397
this._statusBarItem.hide();
398398
return;
399399
}

0 commit comments

Comments
 (0)