Skip to content

For KF6: Additions to the CodeCompletionControllerInterface API

For various reasons, I cannot use automatic invocation of code completion in RKWard, and yet, I want to achieve behavior "like" automatic invocation. Importantly, I'd like to be able to make your of CodeCompletionModel::MatchReaction::HideListIfAutomaticInvocation. However, the current API does not allow to invoke models with InvocationType AutomaticInvocation (or UserInvocation for that matter). This patch adds that.

It also provides for a non-hackish way to access all registered models (including the KateKeywordCompletionModel, allowing to inplement a complete custom version of KateCompletionWidget::automaticInvocation().

Merge request reports