forked from qt-creator/qt-creator
LanguageClient: prevent removing duplicated completion items
The label is not sufficient to identify duplicates for language client completion items, since the changed text is not always equal to the label. Change-Id: I4d3295944a78b541144ecac0982e1f09a53bec8a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -248,6 +248,7 @@ class LanguageClientCompletionModel : public GenericProposalModel
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// GenericProposalModel interface
|
// GenericProposalModel interface
|
||||||
|
bool containsDuplicates() const override { return false; }
|
||||||
bool isSortable(const QString &/*prefix*/) const override { return true; }
|
bool isSortable(const QString &/*prefix*/) const override { return true; }
|
||||||
void sort(const QString &/*prefix*/) override;
|
void sort(const QString &/*prefix*/) override;
|
||||||
bool supportsPrefixExpansion() const override { return false; }
|
bool supportsPrefixExpansion() const override { return false; }
|
||||||
|
Reference in New Issue
Block a user