diff options
Diffstat (limited to 'src/plugins/qmljseditor/qmljseditor.cpp')
-rw-r--r-- | src/plugins/qmljseditor/qmljseditor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/qmljseditor/qmljseditor.cpp b/src/plugins/qmljseditor/qmljseditor.cpp index c59eb5fa93..5a6eee9ffc 100644 --- a/src/plugins/qmljseditor/qmljseditor.cpp +++ b/src/plugins/qmljseditor/qmljseditor.cpp @@ -558,7 +558,7 @@ AST::Node *SemanticInfo::nodeUnderCursor(int pos) const int SemanticInfo::revision() const { if (document) - return document->documentRevision(); + return document->editorRevision(); return 0; } @@ -767,7 +767,7 @@ static void appendExtraSelectionsForMessages( void QmlJSTextEditor::onDocumentUpdated(QmlJS::Document::Ptr doc) { if (file()->fileName() != doc->fileName() - || doc->documentRevision() != document()->revision()) { + || doc->editorRevision() != document()->revision()) { // didn't get the currently open, or an up to date document. // trigger a semantic rehighlight anyway, after a time m_semanticRehighlightTimer->start(); @@ -1468,7 +1468,7 @@ SemanticInfo SemanticHighlighter::semanticInfo(const Source &source) if (! doc) { snapshot = source.snapshot; doc = snapshot.documentFromSource(source.code, source.fileName); - doc->setDocumentRevision(source.revision); + doc->setEditorRevision(source.revision); doc->parse(); } |