Commit 3ec38cbe authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Keep the snapshot around when performing a global completion

parent 075f0b06
......@@ -807,6 +807,7 @@ int CppCodeCompletion::startCompletionInternal(TextEditor::BaseTextEditor *edit,
if (! thisDocument)
return -1;
typeOfExpression.setSnapshot(m_manager->snapshot());
Symbol *lastVisibleSymbol = thisDocument->findSymbolAt(line, column);
if (expression.isEmpty()) {
......@@ -820,7 +821,6 @@ int CppCodeCompletion::startCompletionInternal(TextEditor::BaseTextEditor *edit,
}
typeOfExpression.setSnapshot(m_manager->snapshot());
QList<LookupItem> results = typeOfExpression(expression, thisDocument, lastVisibleSymbol);
LookupContext context = typeOfExpression.lookupContext();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment