I put a breakpoint in your extension near this logic:
async function zd(t, e) {
let r = Bd.promisify(jd.exec);
try {
let n = await r("git --version", {
env: t
});
return e.append(n.stdout), e.append(n.stderr), e.appendLine("[SETUP] git installed"), !0
} catch (n) {
return e.appendLine("[SETUP] git is not found"), e.append(String(n)), XS(e), !1
}
}
The variable ‘t’ contains the following path variables:
Path = 'C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\dotnet\\;D:\\Program Files\\Git\\cmd;C:\\Users\\mikej\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\mikej\\AppData\\Local\\Python\\bin;D:\\Users\\mikej\\AppData\\Local\\Programs\\Microsoft VS Code\\bin'
PATH = 'C:\\Users\\mikej\\.zephyrtools\\env\\Scripts;C:\\Users\\mikej\\.zephyrtools\\env\\bin'
Are there supposed to be two path variables (“Path” and “PATH”)? The former contains the path to git: D:\\Program Files\\Git\\cmd