Commit 5742754e authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

lspclient: re-introduce some runtime safety checks

parent 6c273508
......@@ -1725,6 +1725,10 @@ public:
void updateCompletion(KTextEditor::View *view, LSPClientServer *server)
{
if (!view) {
return;
}
bool registered = m_completionViews.contains(view);
KTextEditor::CodeCompletionInterface *cci = qobject_cast<KTextEditor::CodeCompletionInterface *>(view);
......@@ -1745,6 +1749,10 @@ public:
void updateHover(KTextEditor::View *view, LSPClientServer *server)
{
if (!view) {
return;
}
bool registered = m_hoverViews.contains(view);
KTextEditor::TextHintInterface *cci = qobject_cast<KTextEditor::TextHintInterface *>(view);
......
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