Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
08177378
Commit
08177378
authored
May 15, 2020
by
Mark Nauwelaerts
Browse files
lspclient: also sync diagnostic tab selection on updated diagnostics
parent
e08602d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/lspclient/lspclientpluginview.cpp
View file @
08177378
...
...
@@ -1501,6 +1501,10 @@ public:
m_diagnosticsTree
->
scrollTo
(
topItem
->
index
(),
QAbstractItemView
::
PositionAtTop
);
updateState
();
// 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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment