"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.register = void 0;
const vscode = require("vscode-languageserver-protocol");
function register(context) {
    return async (item, token = vscode.CancellationToken.None) => {
        const data = item.data;
        if (data) {
            const plugin = context.plugins[data.pluginId];
            if (!plugin.resolveInlayHint)
                return item;
            Object.assign(item, data.original);
            item = await plugin.resolveInlayHint(item, token);
        }
        return item;
    };
}
exports.register = register;
//# sourceMappingURL=inlayHintResolve.js.map