Initialize remote IDE scaffold

This commit is contained in:
2026-05-10 14:08:25 +00:00
commit 138eea3231
97 changed files with 21129 additions and 0 deletions
@@ -0,0 +1,18 @@
import { CommandContribution, CommandRegistry } from '@theia/core/lib/common/command.js';
import { MenuContribution, MenuModelRegistry } from '@theia/core/lib/common/menu/menu-model-registry.js';
import { MessageService } from '@theia/core/lib/common/message-service.js';
import { ContainerModule } from '@theia/core/shared/inversify/index.js';
import { type IGitZoneRemoteServer } from '../common/gitzone-remote-protocol.js';
export declare const GitZoneRemoteEnvironmentCommand: {
id: string;
label: string;
};
export declare class GitZoneRemoteContribution implements CommandContribution, MenuContribution {
protected readonly remoteServer: IGitZoneRemoteServer;
protected readonly messages: MessageService;
registerCommands(registry: CommandRegistry): void;
registerMenus(menus: MenuModelRegistry): void;
}
declare const _default: ContainerModule;
export default _default;
//# sourceMappingURL=gitzone-remote-frontend-module.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"gitzone-remote-frontend-module.d.ts","sourceRoot":"","sources":["../../src/browser/gitzone-remote-frontend-module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACzF,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AACzG,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAsB,MAAM,uCAAuC,CAAC;AAC5F,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,sCAAsC,CAAC;AAE9C,eAAO,MAAM,+BAA+B;;;CAG3C,CAAC;AAEF,qBACa,yBAA0B,YAAW,mBAAmB,EAAE,gBAAgB;IAErF,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAG,oBAAoB,CAAC;IAGvD,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAG,cAAc,CAAC;IAE7C,gBAAgB,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI;IASjD,aAAa,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI;CAM9C;;AAED,wBAWG"}
@@ -0,0 +1,64 @@
"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.GitZoneRemoteContribution = exports.GitZoneRemoteEnvironmentCommand = void 0;
const ws_connection_provider_js_1 = require("@theia/core/lib/browser/messaging/ws-connection-provider.js");
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");
const gitzone_remote_protocol_js_1 = require("../common/gitzone-remote-protocol.js");
exports.GitZoneRemoteEnvironmentCommand = {
id: 'gitzone.remote.environment',
label: 'Git.Zone: Show Remote Environment',
};
let GitZoneRemoteContribution = class GitZoneRemoteContribution {
remoteServer;
messages;
registerCommands(registry) {
registry.registerCommand(exports.GitZoneRemoteEnvironmentCommand, {
execute: async () => {
const environment = await this.remoteServer.getEnvironment();
await this.messages.info(`Remote workspace: ${environment.workspacePath}`);
},
});
}
registerMenus(menus) {
menus.registerMenuAction(common_menus_js_1.CommonMenus.FILE_OPEN, {
commandId: exports.GitZoneRemoteEnvironmentCommand.id,
label: exports.GitZoneRemoteEnvironmentCommand.label,
});
}
};
exports.GitZoneRemoteContribution = GitZoneRemoteContribution;
__decorate([
(0, index_js_1.inject)(gitzone_remote_protocol_js_1.GitZoneRemoteServer),
__metadata("design:type", Object)
], GitZoneRemoteContribution.prototype, "remoteServer", void 0);
__decorate([
(0, index_js_1.inject)(message_service_js_1.MessageService),
__metadata("design:type", message_service_js_1.MessageService)
], GitZoneRemoteContribution.prototype, "messages", void 0);
exports.GitZoneRemoteContribution = GitZoneRemoteContribution = __decorate([
(0, index_js_1.injectable)()
], GitZoneRemoteContribution);
exports.default = new index_js_1.ContainerModule((bind) => {
bind(gitzone_remote_protocol_js_1.GitZoneRemoteServer)
.toDynamicValue((context) => context.container
.get(ws_connection_provider_js_1.WebSocketConnectionProvider)
.createProxy(gitzone_remote_protocol_js_1.gitZoneRemotePath))
.inSingletonScope();
bind(GitZoneRemoteContribution).toSelf().inSingletonScope();
bind(command_js_1.CommandContribution).toService(GitZoneRemoteContribution);
bind(menu_model_registry_js_1.MenuContribution).toService(GitZoneRemoteContribution);
});
//# sourceMappingURL=gitzone-remote-frontend-module.js.map
@@ -0,0 +1 @@
{"version":3,"file":"gitzone-remote-frontend-module.js","sourceRoot":"","sources":["../../src/browser/gitzone-remote-frontend-module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2GAA0G;AAC1G,6EAAsE;AACtE,kEAAyF;AACzF,+FAAyG;AACzG,kFAA2E;AAC3E,oEAA4F;AAC5F,qFAI8C;AAEjC,QAAA,+BAA+B,GAAG;IAC7C,EAAE,EAAE,4BAA4B;IAChC,KAAK,EAAE,mCAAmC;CAC3C,CAAC;AAGK,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAEjB,YAAY,CAAwB;IAGpC,QAAQ,CAAkB;IAE7C,gBAAgB,CAAC,QAAyB;QACxC,QAAQ,CAAC,eAAe,CAAC,uCAA+B,EAAE;YACxD,OAAO,EAAE,KAAK,IAAI,EAAE;gBAClB,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,YAAY,CA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