diff --git a/Extension/src/common.ts b/Extension/src/common.ts index 9b4cd444e..34c11c3c8 100644 --- a/Extension/src/common.ts +++ b/Extension/src/common.ts @@ -231,7 +231,7 @@ export function resolveVariables(input: string, additionalEnvironment: {[key: st // Resolve '~' at the start of the path. regexp = () => /^\~/g; ret = ret.replace(regexp(), (match: string, name: string) => { - let newValue: string = process.env.HOME; + let newValue: string = (process.platform === 'win32') ? process.env.USERPROFILE : process.env.HOME; return (newValue) ? newValue : match; });