"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.register = void 0;
const language_service_1 = require("@volar/language-service");
function register(htmlLs) {
    return (pugDoc, docContext) => {
        const htmlResult = htmlLs.findDocumentLinks(pugDoc.map.virtualFileDocument, docContext);
        return language_service_1.transformer.asLocations(htmlResult, htmlRange => pugDoc.map.toSourceRange(htmlRange));
    };
}
exports.register = register;
//# sourceMappingURL=documentLinks.js.map