forked from qt-creator/qt-creator
LanguageClient: fix compile
Change-Id: I090945ee1bd4e45983d6b5b4818d95682e0f428b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Eike Ziller
parent
5eca1ff873
commit
b8a3f8d277
@@ -428,9 +428,9 @@ void LanguageClientCompletionAssistProcessor::handleCompletionResponse(
|
||||
model->loadContent(proposalItems);
|
||||
LanguageClientCompletionProposal *proposal = new LanguageClientCompletionProposal(m_basePos,
|
||||
model);
|
||||
proposal->m_document = m_assistInterface->textDocument();
|
||||
proposal->m_document = document();
|
||||
proposal->m_pos = m_pos;
|
||||
const QString completePrefix = Utils::Text::textAt(QTextCursor(m_document),
|
||||
const QString completePrefix = Utils::Text::textAt(QTextCursor(document()),
|
||||
m_basePos,
|
||||
m_pos - m_basePos);
|
||||
proposal->setPrefixChecker([isComplete, completePrefix](const QString &candidate) {
|
||||
|
||||
Reference in New Issue
Block a user