Commit 53d74b38 authored by Denis Steckelmacher's avatar Denis Steckelmacher

Call translateDUChainToRevision before updating the DUChain

This makes syntax highlighting more robust if there is a parse error, and
allows the cleanup logic to find existing declarations even if they have moved.
parent 3bf071a0
......@@ -67,6 +67,10 @@ void QmlJsParseJob::run()
DUChainReadLocker lock;
context = DUChainUtils::standardContextForUrl(document().toUrl());
if (context) {
context->setRange(RangeInRevision(0, 0, INT_MAX, INT_MAX));
if (session.ast()) {
QReadLocker parseLock(languageSupport()->language()->parseLock());
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