TextEditor: Do not invoke auto-completion recursively

It's unclear why that was done, and it threw off the clang code model by
introducing an unexpected sequence of events.

Fixes: QTCREATORBUG-18676
Change-Id: I4dabb56eb97e18141080c22be324c826202977ce
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2020-08-13 12:27:24 +02:00
parent 6aced79f18
commit 23d63dcc8b

View File

@@ -372,8 +372,6 @@ void CodeAssistantPrivate::processProposalItem(AssistProposalItemInterface *prop
TextDocumentManipulator manipulator(m_editorWidget);
proposalItem->apply(manipulator, m_proposal->basePosition());
destroyContext();
if (!proposalItem->isSnippet())
process();
m_editorWidget->encourageApply();
m_proposalItemProcessed = true;