Git - only show git blame for text documents with the file scheme for now (#234312)

This commit is contained in:
Ladislau Szomoru
2024-11-21 01:32:56 +01:00
committed by GitHub
parent 5b9c6582be
commit ee21e638be

View File

@@ -305,7 +305,7 @@ class GitBlameEditorDecoration {
}
const blameInformation = this._controller.textEditorBlameInformation.get(textEditor);
if (!blameInformation) {
if (!blameInformation || textEditor.document.uri.scheme !== 'file') {
textEditor.setDecorations(this._decorationType, []);
return;
}
@@ -393,7 +393,7 @@ class GitBlameStatusBarItem {
}
const blameInformation = this._controller.textEditorBlameInformation.get(textEditor);
if (!blameInformation || blameInformation.length === 0) {
if (!blameInformation || blameInformation.length === 0 || textEditor.document.uri.scheme !== 'file') {
this._statusBarItem.hide();
return;
}