提交 31938d9e 编写于 作者: R Ramya Achutha Rao

Replace envvars in windowspath when looking for exe

上级 81fc22ec
......@@ -436,7 +436,10 @@ export class ExtensionTipsService implements IExtensionTipsService {
if (!windowsPath || typeof windowsPath !== 'string') {
return;
}
windowsPath = windowsPath.replace('%USERPROFILE%', process.env['USERPROFILE']);
windowsPath = windowsPath.replace('%USERPROFILE%', process.env['USERPROFILE'])
.replace('%ProgramFiles(x86)%', process.env['ProgramFiles(x86)'])
.replace('%ProgramFiles%', process.env['ProgramFiles'])
.replace('%APPDATA%', process.env['APPDATA']);
findExecutable(exeName, windowsPath);
} else {
findExecutable(exeName, paths.join('/usr/local/bin', exeName));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册