From 13af74a4e8e5603e53d7af1cb8b0502193a3359a Mon Sep 17 00:00:00 2001 From: David Schulz Date: Fri, 8 Jul 2022 13:07:48 +0200 Subject: 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 Reviewed-by: Christian Stenger --- src/plugins/languageclient/languageclientcompletionassist.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/plugins/languageclient/languageclientcompletionassist.cpp') 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); -- cgit v1.2.1