175 lines
3.7 KiB
JavaScript
175 lines
3.7 KiB
JavaScript
// @ts-check
|
|
const { performance } = require('perf_hooks');
|
|
const startupLog = (milestone) => console.debug(`Backend main: ${milestone} [${(performance.now() / 1000).toFixed(3)} s since backend process start]`);
|
|
startupLog('entry point loaded');
|
|
const { BackendApplicationConfigProvider } = require('@theia/core/lib/node/backend-application-config-provider');
|
|
const main = require('@theia/core/lib/node/main');
|
|
|
|
BackendApplicationConfigProvider.set({
|
|
"singleInstance": true,
|
|
"frontendConnectionTimeout": 0,
|
|
"configurationFolder": ".theia"
|
|
});
|
|
|
|
globalThis.extensionInfo = [
|
|
{
|
|
"name": "@theia/core",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@git.zone/ide-extension-opencode",
|
|
"version": "0.1.0"
|
|
},
|
|
{
|
|
"name": "@git.zone/ide-extension-product",
|
|
"version": "0.1.0"
|
|
},
|
|
{
|
|
"name": "@git.zone/ide-extension-remote",
|
|
"version": "0.1.0"
|
|
},
|
|
{
|
|
"name": "@theia/variable-resolver",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/editor",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/filesystem",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/workspace",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/markers",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/messages",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/outline-view",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/monaco",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/navigator",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/output",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/ai-core",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/ai-mcp",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/bulk-edit",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/callhierarchy",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/console",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/process",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/file-search",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/terminal",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/userstorage",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/preferences",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/terminal-manager",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/task",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/test",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/debug",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/editor-preview",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/notebook",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/scm",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/search-in-workspace",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/timeline",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/typehierarchy",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/plugin-ext",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/plugin-ext-vscode",
|
|
"version": "1.71.0"
|
|
},
|
|
{
|
|
"name": "@theia/vsx-registry",
|
|
"version": "1.71.0"
|
|
}
|
|
];
|
|
|
|
const serverModule = require('./server');
|
|
const serverAddress = main.start(serverModule());
|
|
|
|
serverAddress.then((addressInfo) => {
|
|
if (process && process.send && addressInfo) {
|
|
process.send(addressInfo);
|
|
}
|
|
});
|
|
|
|
globalThis.serverAddress = serverAddress;
|