Commit 1f784e69 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Make sure we work with a valid view in slot

parent 6d44fc0c
......@@ -640,9 +640,14 @@ public:
// m_semHighlightingManager.setTypes(server->capabilities().semanticTokenProvider.types);
auto h = [this, view](const LSPSemanticTokensDelta &st) {
auto doc = view->document();
QPointer<KTextEditor::View> v = view;
auto h = [this, v](const LSPSemanticTokensDelta &st) {
if (!v) {
auto doc = v->document();
for (const auto &semTokenEdit : st.edits) {
m_semHighlightingManager.update(doc, st.resultId, semTokenEdit.start, semTokenEdit.deleteCount,;
Markdown is supported
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