"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DesignCoreContribution = void 0;
const tslib_1 = require("tslib");
const di_1 = require("@opensumi/di");
const ide_core_browser_1 = require("@opensumi/ide-core-browser");
const constants_1 = require("@opensumi/ide-core-browser/lib/layout/constants");
const ide_core_common_1 = require("@opensumi/ide-core-common");
const ide_file_service_1 = require("@opensumi/ide-file-service");
const file_service_client_1 = require("@opensumi/ide-file-service/lib/browser/file-service-client");
const tabbar_view_1 = require("./layout/tabbar.view");
const file_system_provider_1 = require("./theme/file-system.provider");
let DesignCoreContribution = class DesignCoreContribution {
    initialize() {
        this.fileSystem.registerProvider(ide_core_common_1.Schemes.design, this.designThemeFileSystemProvider);
        this.layoutViewSize.setEditorTabsHeight(36);
        this.layoutViewSize.setStatusBarHeight(36);
        this.layoutViewSize.setAccordionHeaderSizeHeight(36);
    }
    registerRenderer(registry) {
        registry.registerSlotRenderer(ide_core_browser_1.SlotLocation.left, tabbar_view_1.DesignLeftTabRenderer);
        registry.registerSlotRenderer(ide_core_browser_1.SlotLocation.bottom, tabbar_view_1.DesignBottomTabRenderer);
        registry.registerSlotRenderer(ide_core_browser_1.SlotLocation.right, tabbar_view_1.DesignRightTabRenderer);
    }
};
tslib_1.__decorate([
    (0, di_1.Autowired)(ide_file_service_1.IFileServiceClient),
    tslib_1.__metadata("design:type", file_service_client_1.FileServiceClient)
], DesignCoreContribution.prototype, "fileSystem", void 0);
tslib_1.__decorate([
    (0, di_1.Autowired)(),
    tslib_1.__metadata("design:type", file_system_provider_1.DesignThemeFileSystemProvider)
], DesignCoreContribution.prototype, "designThemeFileSystemProvider", void 0);
tslib_1.__decorate([
    (0, di_1.Autowired)(constants_1.LayoutViewSizeConfig),
    tslib_1.__metadata("design:type", constants_1.LayoutViewSizeConfig)
], DesignCoreContribution.prototype, "layoutViewSize", void 0);
DesignCoreContribution = tslib_1.__decorate([
    (0, di_1.Injectable)(),
    (0, ide_core_browser_1.Domain)(ide_core_browser_1.ClientAppContribution, ide_core_browser_1.SlotRendererContribution)
], DesignCoreContribution);
exports.DesignCoreContribution = DesignCoreContribution;
//# sourceMappingURL=design.contribution.js.map