forked from qt-creator/qt-creator
QmlJS: Fix codemodel reset
The QML import paths weren't scanned for modules when the code model was reset. Task-number: QTCREATORBUG-24082 Change-Id: If818ebf4ef123529e5fe8de40e6b5d0154c84680 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@qt.io>
This commit is contained in:
committed by
Fawzi Mohamed
parent
3a2f09c1bb
commit
2c2cd08761
@@ -1570,10 +1570,15 @@ void ModelManagerInterface::resetCodeModel()
|
||||
// reset the snapshot
|
||||
m_validSnapshot = Snapshot();
|
||||
m_newestSnapshot = Snapshot();
|
||||
m_scannedPaths.clear();
|
||||
}
|
||||
|
||||
// start a reparse thread
|
||||
updateSourceFiles(documents, false);
|
||||
|
||||
// rescan import directories
|
||||
m_shouldScanImports = true;
|
||||
updateImportPaths();
|
||||
}
|
||||
|
||||
} // namespace QmlJS
|
||||
|
Reference in New Issue
Block a user