Commit 08177378 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

lspclient: also sync diagnostic tab selection on updated diagnostics

parent e08602d7
......@@ -1501,6 +1501,10 @@ public:
m_diagnosticsTree->scrollTo(topItem->index(), QAbstractItemView::PositionAtTop);
// also sync updated diagnositic to current position
auto currentView = m_mainWindow->activeView();
if (currentView && currentView->document())
syncDiagnostics(currentView->document(), currentView->cursorPosition().line(), false, false);
KTextEditor::View *viewForUrl(const QUrl &url) const
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment