Skip to content

Instantly share code, notes, and snippets.

@blackjack
Created October 28, 2015 15:13
Show Gist options
  • Save blackjack/9673db132f384c1fee72 to your computer and use it in GitHub Desktop.
Save blackjack/9673db132f384c1fee72 to your computer and use it in GitHub Desktop.
354461.diff
diff --git a/language/assistant/staticassistantsmanager.cpp b/language/assistant/staticassistantsmanager.cpp
index 92ca321..248f960 100644
--- a/language/assistant/staticassistantsmanager.cpp
+++ b/language/assistant/staticassistantsmanager.cpp
@@ -105,17 +105,6 @@ StaticAssistantsManager::StaticAssistantsManager(QObject* parent)
}
d->m_completionModel = new AssistantCompletionModel(this);
- connect(d->m_completionModel, &AssistantCompletionModel::hasCompletions, this, [this]{
- if (auto view = d->m_currentView.data()) {
- // We cannot use KTextEditor::CodeCompletionInterface::startCompletion for now
- // It randomly disappears and refuses to invoke in many/various situations
- // Would be very nice to fix this in KTextEditor, because we /really/ want to
- // be able to invoke completion only on the assistants model as we could with
- // CodeCompletionInterface::startCompletion
- // HACK: private internal slot invocation
- QMetaObject::invokeMethod(view, "userInvokedCompletion");
- }
- });
new KDevelop::CodeCompletion(this, d->m_completionModel, {});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment