forked from qt-creator/qt-creator
Check the document's revision when creating links.
This commit is contained in:
@@ -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());
|
||||
|
||||
|
Reference in New Issue
Block a user