forked from qt-creator/qt-creator
Editor: unify assist processor handling
Define the run type of the processor by its implementation instead of a enum value of the provider. The execution of a processor inside the assist now follows a unified procedure. Change-Id: Ibe9fab324c6072e77702c2663946d7a9f562a085 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -314,7 +314,7 @@ static QString assistReasonString(AssistReason reason)
|
||||
return QString("unknown reason");
|
||||
}
|
||||
|
||||
IAssistProposal *LanguageClientCompletionAssistProcessor::perform(const AssistInterface *interface)
|
||||
IAssistProposal *LanguageClientCompletionAssistProcessor::perform(AssistInterface *interface)
|
||||
{
|
||||
m_assistInterface.reset(interface);
|
||||
QTC_ASSERT(m_client, return nullptr);
|
||||
@@ -454,11 +454,6 @@ IAssistProcessor *LanguageClientCompletionAssistProvider::createProcessor(
|
||||
m_snippetsGroup);
|
||||
}
|
||||
|
||||
IAssistProvider::RunType LanguageClientCompletionAssistProvider::runType() const
|
||||
{
|
||||
return IAssistProvider::Asynchronous;
|
||||
}
|
||||
|
||||
int LanguageClientCompletionAssistProvider::activationCharSequenceLength() const
|
||||
{
|
||||
return m_activationCharSequenceLength;
|
||||
|
||||
Reference in New Issue
Block a user