"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExtHostLifeCycle = void 0;
exports.createLifeCycleApi = createLifeCycleApi;
const sumi_1 = require("../../../common/sumi");
function createLifeCycleApi(extHostCommands, lifeCycle) {
    return {
        setExtensionDir: (dir) => {
            lifeCycle.setExtensionDir(dir);
        },
        setExtensionCandidate: (exts) => {
            lifeCycle.setExtensionCandidate(exts);
        },
    };
}
class ExtHostLifeCycle {
    constructor(rpcProtocol) {
        this.rpcProtocol = rpcProtocol;
        this.proxy = this.rpcProtocol.getProxy(sumi_1.MainThreadSumiAPIIdentifier.MainThreadLifecycle);
    }
    setExtensionDir(path) {
        this.proxy.$setExtensionDir(path);
    }
    setExtensionCandidate(candidate) {
        this.proxy.$setExtensionCandidate(candidate);
    }
}
exports.ExtHostLifeCycle = ExtHostLifeCycle;
//# sourceMappingURL=ext.host.lifecycle.js.map