Commit f2f80023 authored by Milian Wolff's avatar Milian Wolff

Wait for parsed before, that is more performant than a manual qWait.

parent 75d20060
......@@ -80,6 +80,7 @@ CompletionParameters prepareCompletion(const QString& initCode, const QString& i
qml ? "qml" : "js"));
completion_data.file->parse();
completion_data.file->waitForParsed();
// wait for this fail and all dependencies, like modules and such
while (!ICore::self()->languageController()->backgroundParser()->isIdle()) {
QTest::qWait(100);
......
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