提交 f53b96eb 编写于 作者: E Eugene Pankov

detect git-bash when installed for current user only (closes #161)

上级 80699ee1
......@@ -33,6 +33,19 @@ export class GitBashShellProvider extends ShellProvider {
})
})
if (!gitBashPath) {
gitBashPath = await new Promise<string>(resolve => {
let reg = new Registry({ hive: Registry.HKCU, key: '\\Software\\GitForWindows' })
reg.get('InstallPath', (err, item) => {
if (err || !item) {
resolve(null)
return
}
resolve(item.value)
})
})
}
if (!gitBashPath) {
return []
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册