"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createCommandsApiFactory = createCommandsApiFactory;
const ext_host_command_1 = require("../vscode/ext.host.command");
function createCommandsApiFactory(extHostCommands, extHostEditors, extension) {
    const vscodeCommands = (0, ext_host_command_1.createCommandsApiFactory)(extHostCommands, extHostEditors, extension);
    return {
        ...vscodeCommands,
        registerCommandWithPermit(id, handler, isPermitted) {
            return extHostCommands.registerCommand(true, id, {
                handler,
                isPermitted,
            });
        },
    };
}
//# sourceMappingURL=ext.host.command.js.map