feat: transform wsl path to windows folder

This commit is contained in:
lnu 2021-02-15 10:31:47 +01:00 committed by Jan De Dobbeleer
parent 6add3bf2a0
commit b0562a38b8

View file

@ -65,6 +65,10 @@ func (pt *path) string() string {
}
if pt.props.getBool(EnableHyperlink, false) {
// wsl check
if pt.env.isWsl() {
cwd, _ = pt.env.runCommand("wslpath", "-m", cwd)
}
return fmt.Sprintf("[%s](file://%s)", formattedPath, cwd)
}