summaryrefslogtreecommitdiff
path: root/src/plugins/languageclient/languageclientcompletionassist.cpp
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2022-07-08 13:07:48 +0200
committerChristian Stenger <christian.stenger@qt.io>2022-07-11 12:15:09 +0000
commit13af74a4e8e5603e53d7af1cb8b0502193a3359a (patch)
tree3ef2fb889eb3088f3f1ecf0bafc384c51bf0b5ca /src/plugins/languageclient/languageclientcompletionassist.cpp
parent8953be1d3fb5520ea7d1b8fc842af1b584ee1a16 (diff)
downloadqt-creator-13af74a4e8e5603e53d7af1cb8b0502193a3359a.tar.gz
LanguageClient: remove fragile flag from lsp proposals
Those proposals are not fragile anymore since they reuse the old completion widget. This fixes vanishing of none idle editor completions on backspace if there are less than 3 characters to complete. Additionally this removes the double completion request if there are more than 3 characters typed in. Change-Id: Id47d341adf954dfaaaeb70c17f6774ba38cc8bdf Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/languageclient/languageclientcompletionassist.cpp')
-rw-r--r--src/plugins/languageclient/languageclientcompletionassist.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/languageclient/languageclientcompletionassist.cpp b/src/plugins/languageclient/languageclientcompletionassist.cpp
index 0ab76a10c0..baac3b007e 100644
--- a/src/plugins/languageclient/languageclientcompletionassist.cpp
+++ b/src/plugins/languageclient/languageclientcompletionassist.cpp
@@ -447,7 +447,6 @@ void LanguageClientCompletionAssistProcessor::handleCompletionResponse(
model);
proposal->m_document = m_document;
proposal->m_pos = m_pos;
- proposal->setFragile(true);
proposal->setSupportsPrefix(false);
setAsyncProposalAvailable(proposal);
m_client->removeAssistProcessor(this);