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
Branches
Tags
No related merge requests found
......@@ -837,7 +837,7 @@ TextEditor::BaseTextEditor::Link QmlJSTextEditor::findLinkAt(const QTextCursor &
Link link;
const SemanticInfo semanticInfo = m_semanticInfo;
if (semanticInfo.document) {
if (semanticInfo.document && semanticInfo.revision() == document()->revision()) {
CollectASTNodes nodes;
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