forked from qt-creator/qt-creator
Use the snapshot from the semanticinfo when processign QML/JS documents.
This commit is contained in:
@@ -616,9 +616,8 @@ int QmlCodeCompletion::startCompletion(TextEditor::ITextEditable *editor)
|
||||
|
||||
m_completions.clear();
|
||||
|
||||
QmlJS::Snapshot snapshot = m_modelManager->snapshot();
|
||||
|
||||
SemanticInfo semanticInfo = edit->semanticInfo();
|
||||
const QmlJS::Snapshot snapshot = semanticInfo.snapshot;
|
||||
Document::Ptr qmlDocument = semanticInfo.document;
|
||||
if (qmlDocument.isNull())
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user