diff options
| author | bors <bors@rust-lang.org> | 2023-06-29 07:18:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-06-29 07:18:57 +0000 |
| commit | d7f4c2195084665e606b656f9061776e5a8d2953 (patch) | |
| tree | a395f329204dd7b68e08feef679ffe44500b0c8c /editors/code/src | |
| parent | ad434fc4acc071e07dc77d1b78c98e933b776e36 (diff) | |
| parent | 3f70117d69251d01b0ca2de8324eb5dafa8ff193 (diff) | |
| download | rust-d7f4c2195084665e606b656f9061776e5a8d2953.tar.gz rust-d7f4c2195084665e606b656f9061776e5a8d2953.zip | |
Auto merge of #15138 - mohsen-alizadeh:13583-rename-runnableEnv-to-runnables-extraEnv, r=Veykril
13583 rename runnable env to runnables extra env closes #13583
Diffstat (limited to 'editors/code/src')
| -rw-r--r-- | editors/code/src/config.ts | 4 | ||||
| -rw-r--r-- | editors/code/src/debug.ts | 2 | ||||
| -rw-r--r-- | editors/code/src/run.ts | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index c6d2bcc2b2a..ee9ba7465ab 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts @@ -224,8 +224,8 @@ export class Config { return this.get<string | undefined>("cargoRunner"); } - get runnableEnv() { - const item = this.get<any>("runnableEnv"); + get runnablesExtraEnv() { + const item = this.get<any>("runnables.extraEnv") ?? this.get<any>("runnableEnv"); if (!item) return item; const fixRecord = (r: Record<string, any>) => { for (const key in r) { diff --git a/editors/code/src/debug.ts b/editors/code/src/debug.ts index cffee1de6af..8fbd427039e 100644 --- a/editors/code/src/debug.ts +++ b/editors/code/src/debug.ts @@ -118,7 +118,7 @@ async function getDebugConfiguration( return path.normalize(p).replace(wsFolder, "${workspaceFolder" + workspaceQualifier + "}"); } - const env = prepareEnv(runnable, ctx.config.runnableEnv); + const env = prepareEnv(runnable, ctx.config.runnablesExtraEnv); const executable = await getDebugExecutable(runnable, env); let sourceFileMap = debugOptions.sourceFileMap; if (sourceFileMap === "auto") { diff --git a/editors/code/src/run.ts b/editors/code/src/run.ts index 623fb102953..cc2ecfa2d80 100644 --- a/editors/code/src/run.ts +++ b/editors/code/src/run.ts @@ -140,7 +140,7 @@ export async function createTask(runnable: ra.Runnable, config: Config): Promise command: args[0], // run, test, etc... args: args.slice(1), cwd: runnable.args.workspaceRoot || ".", - env: prepareEnv(runnable, config.runnableEnv), + env: prepareEnv(runnable, config.runnablesExtraEnv), overrideCargo: runnable.args.overrideCargo, }; |
