diff --git a/src/node/routes/vscode.ts b/src/node/routes/vscode.ts index f50f011fd..7e8f0f3ff 100644 --- a/src/node/routes/vscode.ts +++ b/src/node/routes/vscode.ts @@ -59,7 +59,7 @@ async function loadVSCode(req: express.Request): Promise { // breaks importing `rotating-file-stream` for some reason. To work around // this, use `eval` for now, but we should consider switching to ESM. 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() return serverModule.createServer(null, { ...(await toCodeArgs(req.args)),