Git - only show git blame for text documents with the `file` scheme for now (#234312)
This commit is contained in:
Родитель
5b9c6582be
Коммит
ee21e638be
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче