SchoofsKelvin / vscode-sshfs

Extension for Visual Studio Code: File system provider using SSH
GNU General Public License v3.0
543 stars 36 forks source link

Terminal Links for relative paths are incorrect #344

Open SchoofsKelvin opened 2 years ago

SchoofsKelvin commented 2 years ago

Discovered while double-checking Terminal Links for #342

A terminal link for e.g. ./file.ext will actually link to ssh://<config>/file.ext, i.e. it is handled as an absolute path. Mostly because the RegExp ignores the leading (double) dot.

To add support for relative links, we need a way to keep track of which directory the path is relative to: