diff options
Diffstat (limited to 'src/plugins/languageclient/client.cpp')
-rw-r--r-- | src/plugins/languageclient/client.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/languageclient/client.cpp b/src/plugins/languageclient/client.cpp index 6484c6441d..12c8f86531 100644 --- a/src/plugins/languageclient/client.cpp +++ b/src/plugins/languageclient/client.cpp @@ -289,6 +289,11 @@ bool Client::openDocument(Core::IDocument *document) if (textDocument) { textDocument->completionAssistProvider(); m_resetAssistProvider << textDocument; + m_completionProvider.setTriggerCharacters( + m_serverCapabilities.completionProvider() + .value_or(ServerCapabilities::CompletionOptions()) + .triggerCharacters() + .value_or(QList<QString>())); textDocument->setCompletionAssistProvider(&m_completionProvider); textDocument->setQuickFixAssistProvider(&m_quickFixProvider); connect(textDocument, &QObject::destroyed, this, [this, textDocument]{ |