forked from qt-creator/qt-creator
Git: InstantBlame: Add more logging for blame setup
Change-Id: Ic3b36abe72a04331be09fafbfec114da578a95ff Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
André Hartmann
parent
f1c74e7779
commit
216170653f
@@ -200,13 +200,16 @@ void InstantBlame::setup()
|
|||||||
qCDebug(log) << "Setup";
|
qCDebug(log) << "Setup";
|
||||||
|
|
||||||
auto setupBlameForEditor = [this] {
|
auto setupBlameForEditor = [this] {
|
||||||
|
qCDebug(log) << "Setting up blame for editor.";
|
||||||
Core::IEditor *editor = EditorManager::currentEditor();
|
Core::IEditor *editor = EditorManager::currentEditor();
|
||||||
if (!editor) {
|
if (!editor) {
|
||||||
|
qCDebug(log) << "No current editor found.";
|
||||||
stop();
|
stop();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!settings().instantBlame()) {
|
if (!settings().instantBlame()) {
|
||||||
|
qCDebug(log) << "Instant blame is disabled.";
|
||||||
m_lastVisitedEditorLine = -1;
|
m_lastVisitedEditorLine = -1;
|
||||||
stop();
|
stop();
|
||||||
return;
|
return;
|
||||||
@@ -224,8 +227,11 @@ void InstantBlame::setup()
|
|||||||
}
|
}
|
||||||
|
|
||||||
const FilePath workingDirectory = currentState().currentFileTopLevel();
|
const FilePath workingDirectory = currentState().currentFileTopLevel();
|
||||||
if (!refreshWorkingDirectory(workingDirectory))
|
if (!refreshWorkingDirectory(workingDirectory)) {
|
||||||
|
qCDebug(log).nospace().noquote() << "Cannot refresh working directory: '"
|
||||||
|
<< workingDirectory << "'";
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
qCInfo(log) << "Adding blame cursor connection";
|
qCInfo(log) << "Adding blame cursor connection";
|
||||||
m_blameCursorPosConn = connect(widget, &QPlainTextEdit::cursorPositionChanged, this,
|
m_blameCursorPosConn = connect(widget, &QPlainTextEdit::cursorPositionChanged, this,
|
||||||
|
Reference in New Issue
Block a user