LanguageClient: Fix dynamic registered signature help

Change-Id: Ie7427f4a0aede5c933995610d03791e837ad39e4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2021-01-22 09:53:50 +01:00
parent c5ba98b0ed
commit 71c2443bb0
4 changed files with 45 additions and 12 deletions

View File

@@ -26,6 +26,7 @@
#pragma once
#include <texteditor/codeassist/completionassistprovider.h>
#include <utils/optional.h>
namespace LanguageClient {
@@ -45,7 +46,7 @@ public:
bool isActivationCharSequence(const QString &sequence) const override;
bool isContinuationChar(const QChar &c) const override;
void setTriggerCharacters(QList<QString> triggerChars);
void setTriggerCharacters(const Utils::optional<QList<QString>> &triggerChars);
private:
QList<QString> m_triggerChars;
int m_activationCharSequenceLength = 0;