Initialize remote IDE scaffold
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.GitZoneProductContribution = exports.GitZoneWelcomeCommand = void 0;
|
||||
const common_menus_js_1 = require("@theia/core/lib/browser/common-menus.js");
|
||||
const command_js_1 = require("@theia/core/lib/common/command.js");
|
||||
const menu_model_registry_js_1 = require("@theia/core/lib/common/menu/menu-model-registry.js");
|
||||
const message_service_js_1 = require("@theia/core/lib/common/message-service.js");
|
||||
const index_js_1 = require("@theia/core/shared/inversify/index.js");
|
||||
exports.GitZoneWelcomeCommand = {
|
||||
id: 'gitzone.product.welcome',
|
||||
label: 'Git.Zone: Welcome',
|
||||
};
|
||||
let GitZoneProductContribution = class GitZoneProductContribution {
|
||||
messages;
|
||||
registerCommands(registry) {
|
||||
registry.registerCommand(exports.GitZoneWelcomeCommand, {
|
||||
execute: () => this.messages.info('Git.Zone IDE is connected to a remote-first Theia workspace.'),
|
||||
});
|
||||
}
|
||||
registerMenus(menus) {
|
||||
menus.registerMenuAction(common_menus_js_1.CommonMenus.HELP, {
|
||||
commandId: exports.GitZoneWelcomeCommand.id,
|
||||
label: exports.GitZoneWelcomeCommand.label,
|
||||
});
|
||||
}
|
||||
};
|
||||
exports.GitZoneProductContribution = GitZoneProductContribution;
|
||||
__decorate([
|
||||
(0, index_js_1.inject)(message_service_js_1.MessageService),
|
||||
__metadata("design:type", message_service_js_1.MessageService)
|
||||
], GitZoneProductContribution.prototype, "messages", void 0);
|
||||
exports.GitZoneProductContribution = GitZoneProductContribution = __decorate([
|
||||
(0, index_js_1.injectable)()
|
||||
], GitZoneProductContribution);
|
||||
exports.default = new index_js_1.ContainerModule((bind) => {
|
||||
bind(GitZoneProductContribution).toSelf().inSingletonScope();
|
||||
bind(command_js_1.CommandContribution).toService(GitZoneProductContribution);
|
||||
bind(menu_model_registry_js_1.MenuContribution).toService(GitZoneProductContribution);
|
||||
});
|
||||
//# sourceMappingURL=gitzone-product-frontend-module.js.map
|
||||
Reference in New Issue
Block a user