Commit 5e4fe526 authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJS: Fix newly parsed document not being added to the snapshot copy.

This was the root cause of several issues with scoping and import
resolution. For instance, finding the components that instantiate a
component that's opened in the editor failed; leading to code
completion missing valid entries.

Reviewed-by: Erik Verbruggen
Reviewed-by: Roberto Raggi
parent 8862af3a
......@@ -2006,6 +2006,7 @@ SemanticInfo SemanticHighlighter::semanticInfo(const Source &source)
doc = snapshot.documentFromSource(source.code, source.fileName);
SemanticInfo semanticInfo;
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