aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2022-05-13 13:59:55 +0200
committerDavid Schulz <david.schulz@qt.io>2022-05-13 12:59:55 +0000
commit1bfd5da0248be7b7992075b12a65157412a92cea (patch)
treed767b03ca1cf047c053afe2885eba470b3252b37
parent17982e661c50a0472e93e7e7d19389162dcd250e (diff)
LanguageClient: Track quick fix assist processor
Same as for the completion and function hint processor, these processors need to be tracked so they get cleaned up on client destruction. Change-Id: Ib24eb8c652e7a44d8b79e1edddda9ad659d145a3 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r--src/plugins/languageclient/languageclientquickfix.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/languageclient/languageclientquickfix.cpp b/src/plugins/languageclient/languageclientquickfix.cpp
index 93d85b15f2..cf9f7196d0 100644
--- a/src/plugins/languageclient/languageclientquickfix.cpp
+++ b/src/plugins/languageclient/languageclientquickfix.cpp
@@ -117,6 +117,7 @@ IAssistProposal *LanguageClientQuickFixAssistProcessor::perform(const AssistInte
handleCodeActionResponse(response);
});
+ m_client->addAssistProcessor(this);
m_client->requestCodeActions(request);
m_currentRequest = request.id();
return nullptr;