qmljs: relax checks on Qbs imports

Task-number: QTCREATORBUG-21042
Change-Id: I07093c240abb2f0fafe1a97fb4e81fd223551d43
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Marco Benelli
2019-01-07 09:40:10 +01:00
parent bcafe202c9
commit 873b8820c1

View File

@@ -393,13 +393,8 @@ Import LinkPrivate::importNonFile(Document::Ptr doc, const ImportInfo &importInf
}
// TODO: at the moment there is not any types information on Qbs imports.
// Just check that tha the import is listed in the Qbs bundle.
if (doc->language() == Dialect::QmlQbs) {
QmlBundle qbs = ModelManagerInterface::instance()
->activeBundles().bundleForLanguage(Dialect::QmlQbs);
if (qbs.supportedImports().contains(importInfo.name()))
importFound = true;
}
if (doc->language() == Dialect::QmlQbs)
importFound = true;
if (!importFound && importInfo.ast()) {
import.valid = false;