43 QList<QLspSpecification::Location> results;
44 ResponseScopeGuard guard(results, request->m_response);
46 auto itemsFound = itemsForRequest(request);
47 if (guard.setErrorFrom(itemsFound))
50 auto &front = std::get<QList<QQmlLSUtils::ItemLocation>>(itemsFound).front();
52 auto base = QQmlLSUtils::findTypeDefinitionOf(front.domItem);
55 qDebug() << u"Could not obtain the base from the item"_s;
59 QLspSpecification::Location l;
60 l.uri = QUrl::fromLocalFile(base->filename()).toEncoded();
61 l.range = QQmlLSUtils::qmlLocationToLspLocation(*base);