From da0570c3415cdfa3db36c1e1892b6c7822a60f6e Mon Sep 17 00:00:00 2001 From: Brian Ignacio Date: Wed, 20 Nov 2024 09:23:12 +0800 Subject: [PATCH] fix env var casing --- src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index 098fa6309..b34a7cd08 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1157,8 +1157,8 @@ export async function appendIdfAndToolsToPath(curWorkspace: vscode.Uri) { if (idfToolsExportVars) { try { for (const envVar in idfToolsExportVars) { - if (envVar === pathNameInEnv) { - modifiedEnv[pathNameInEnv] = idfToolsExportVars[pathNameInEnv] + if (envVar.toUpperCase() === pathNameInEnv.toUpperCase()) { + modifiedEnv[pathNameInEnv] = idfToolsExportVars[envVar] .replace("%PATH%", modifiedEnv[pathNameInEnv]) .replace("$PATH", modifiedEnv[pathNameInEnv]); } else {