36 QList<QLspSpecification::Location> results;
37 ResponseScopeGuard guard(results, request->m_response);
39 auto itemsFound = itemsForRequest(request);
40 if (!itemsFound.has_value()) {
41 guard.setError(itemsFound.error());
45 auto &front = itemsFound.value().front();
47 auto base = QQmlLSUtils::findTypeDefinitionOf(front.domItem);
50 qDebug() << u"Could not obtain the base from the item"_s;
54 QLspSpecification::Location l;
55 l.uri = QUrl::fromLocalFile(base->filename()).toEncoded();
56 l.range = QQmlLSUtils::qmlLocationToLspLocation(*base);