forked from qt-creator/qt-creator
LanguageClient: move completion rerequest logic
...from the code assistant to the language client specific assist implementation. This further reduces the complexity of the code assistant. Change-Id: I08ba5eecea826d3ccfe7f1f5a8791a085299d6ef Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -63,16 +63,6 @@ int IAssistProposal::basePosition() const
|
||||
return m_basePosition;
|
||||
}
|
||||
|
||||
bool IAssistProposal::isFragile() const
|
||||
{
|
||||
return m_isFragile;
|
||||
}
|
||||
|
||||
bool IAssistProposal::supportsPrefixFiltering(const QString &prefix) const
|
||||
{
|
||||
return !m_prefixChecker || m_prefixChecker(prefix);
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn bool TextEditor::IAssistProposal::isCorrective() const
|
||||
|
||||
@@ -98,16 +88,6 @@ void IAssistProposal::makeCorrection(TextEditorWidget *editorWidget)
|
||||
Q_UNUSED(editorWidget)
|
||||
}
|
||||
|
||||
void IAssistProposal::setFragile(bool fragile)
|
||||
{
|
||||
m_isFragile = fragile;
|
||||
}
|
||||
|
||||
void IAssistProposal::setPrefixChecker(const PrefixChecker checker)
|
||||
{
|
||||
m_prefixChecker = checker;
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn IAssistModel *TextEditor::IAssistProposal::model() const
|
||||
|
||||
|
||||
Reference in New Issue
Block a user