"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const backend_application_js_1 = require("@theia/core/lib/node/backend-application.js"); const handler_js_1 = require("@theia/core/lib/common/messaging/handler.js"); const proxy_factory_js_1 = require("@theia/core/lib/common/messaging/proxy-factory.js"); const index_js_1 = require("@theia/core/shared/inversify/index.js"); const gitzone_opencode_protocol_js_1 = require("../common/gitzone-opencode-protocol.js"); const gitzone_opencode_node_service_js_1 = require("./gitzone-opencode-node-service.js"); exports.default = new index_js_1.ContainerModule((bind) => { bind(gitzone_opencode_node_service_js_1.GitZoneOpenCodeNodeService).toSelf().inSingletonScope(); bind(gitzone_opencode_protocol_js_1.GitZoneOpenCodeServer).toService(gitzone_opencode_node_service_js_1.GitZoneOpenCodeNodeService); bind(backend_application_js_1.BackendApplicationContribution).toService(gitzone_opencode_node_service_js_1.GitZoneOpenCodeNodeService); bind(handler_js_1.ConnectionHandler) .toDynamicValue((context) => new proxy_factory_js_1.RpcConnectionHandler(gitzone_opencode_protocol_js_1.gitZoneOpenCodePath, (client) => { const server = context.container.get(gitzone_opencode_protocol_js_1.GitZoneOpenCodeServer); server.setClient(client); return server; })) .inSingletonScope(); }); //# sourceMappingURL=gitzone-opencode-backend-module.js.map