mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-02 00:09:30 +01:00
Agenthost server fixes
This commit is contained in:
@@ -41,7 +41,7 @@ function startServer(programArgs) {
|
||||
'out',
|
||||
'vs',
|
||||
'platform',
|
||||
'agent',
|
||||
'agentHost',
|
||||
'node',
|
||||
'agentHostServerMain.js',
|
||||
);
|
||||
|
||||
@@ -6,6 +6,13 @@
|
||||
// Standalone agent host server with WebSocket protocol transport.
|
||||
// Start with: node out/vs/platform/agentHost/node/agentHostServerMain.js [--port <port>] [--enable-mock-agent]
|
||||
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
// This standalone process isn't bootstrapped via bootstrap-esm.ts, so we must
|
||||
// set _VSCODE_FILE_ROOT ourselves so that FileAccess can resolve module paths.
|
||||
// This file lives at out/vs/platform/agentHost/node/ - the root is `out/`.
|
||||
globalThis._VSCODE_FILE_ROOT = fileURLToPath(new URL('../../../..', import.meta.url));
|
||||
|
||||
import { DisposableStore } from '../../../base/common/lifecycle.js';
|
||||
import { URI } from '../../../base/common/uri.js';
|
||||
import { localize } from '../../../nls.js';
|
||||
|
||||
Reference in New Issue
Block a user