This commit is contained in:
Asher 2024-10-16 20:24:48 -08:00
parent 5eb1d84e48
commit 3f67c0ebed
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ async function loadVSCode(req: express.Request): Promise<IVSCodeServerAPI> {
// breaks importing `rotating-file-stream` for some reason. To work around // breaks importing `rotating-file-stream` for some reason. To work around
// this, use `eval` for now, but we should consider switching to ESM. // this, use `eval` for now, but we should consider switching to ESM.
const modPath = path.join(vsRootPath, "out/server-main.js") const modPath = path.join(vsRootPath, "out/server-main.js")
const mod = await eval(`import("${modPath}")`) as VSCodeModule const mod = (await eval(`import("${modPath}")`)) as VSCodeModule
const serverModule = await mod.loadCodeWithNls() const serverModule = await mod.loadCodeWithNls()
return serverModule.createServer(null, { return serverModule.createServer(null, {
...(await toCodeArgs(req.args)), ...(await toCodeArgs(req.args)),