diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/code/src/run.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editors/code/src/run.ts b/editors/code/src/run.ts index c09954614..de68f27ae 100644 --- a/editors/code/src/run.ts +++ b/editors/code/src/run.ts | |||
@@ -103,6 +103,8 @@ export function prepareEnv(runnable: ra.Runnable, runnableEnvCfg: RunnableEnvCfg | |||
103 | env["UPDATE_EXPECT"] = "1"; | 103 | env["UPDATE_EXPECT"] = "1"; |
104 | } | 104 | } |
105 | 105 | ||
106 | Object.assign(env, process.env as { [key: string]: string }); | ||
107 | |||
106 | if (runnableEnvCfg) { | 108 | if (runnableEnvCfg) { |
107 | if (Array.isArray(runnableEnvCfg)) { | 109 | if (Array.isArray(runnableEnvCfg)) { |
108 | for (const it of runnableEnvCfg) { | 110 | for (const it of runnableEnvCfg) { |
@@ -135,7 +137,7 @@ export async function createTask(runnable: ra.Runnable, config: Config): Promise | |||
135 | type: tasks.TASK_TYPE, | 137 | type: tasks.TASK_TYPE, |
136 | command: args[0], // run, test, etc... | 138 | command: args[0], // run, test, etc... |
137 | args: args.slice(1), | 139 | args: args.slice(1), |
138 | cwd: runnable.args.workspaceRoot, | 140 | cwd: runnable.args.workspaceRoot || ".", |
139 | env: prepareEnv(runnable, config.runnableEnv), | 141 | env: prepareEnv(runnable, config.runnableEnv), |
140 | }; | 142 | }; |
141 | 143 | ||