Skip to content
Snippets Groups Projects
Commit f8ed5c58 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Check the document's revision when creating links.

parent bc77bd9e
No related merge requests found
...@@ -837,7 +837,7 @@ TextEditor::BaseTextEditor::Link QmlJSTextEditor::findLinkAt(const QTextCursor & ...@@ -837,7 +837,7 @@ TextEditor::BaseTextEditor::Link QmlJSTextEditor::findLinkAt(const QTextCursor &
Link link; Link link;
const SemanticInfo semanticInfo = m_semanticInfo; const SemanticInfo semanticInfo = m_semanticInfo;
if (semanticInfo.document) { if (semanticInfo.document && semanticInfo.revision() == document()->revision()) {
CollectASTNodes nodes; CollectASTNodes nodes;
nodes.accept(semanticInfo.document->ast()); nodes.accept(semanticInfo.document->ast());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment