I have a server I remotely connect to using SSHFS for a project I'm doing that makes use of the FileSystemProvider API to do ssh:// paths. How do I get Gitlens to show this workspace?
Are you using a vscode extension to support ssh files?
Yes the extension is actually called SSHFS, not to be confused with the FUSE one. Link to project: https://github.com/SchoofsKelvin/vscode-sshfs
I'm running on Win 7 but remote into a Fedora Server that's used among other purposes for my dev work before getting pushed to BitBucket.
Does the built-in git support in vscode work with that setup?
I'm not sure. I haven't been successful in getting it to read the path. I'm unable to create a Samba share (read: no permission to do so) so I'm totally reliant on the extension to directly manipulate from Windows.
Yeah, unfortunately I don't think it can work, since both the built-in vscode git and GitLens shell out to git itself to do all of the work. So the git process would need to be able to have access to the repo/fs itself.
ok, I'll give the vs code folks a whirl with it then. Seems silly they enable the feature to create remote workspaces via ssh but then not be able to use git with it.
Closing as this currently isn't possible given the current level of file system support
Hey @WSLUser, did you ever get to the bottom of this?
I had filed an issue with VS Code https://github.com/Microsoft/vscode/issues/66046 but I also found https://github.com/Microsoft/vscode/issues/68808 which now has the on-deck tag on it. Probably because the issue writer provided a bit more details except in that case it was filed for the use case of debugging (which is why I requested VS Code itself tackle the issue instead of extension authors.) Technically this extension just needs to take a look at the filesystemprovider API and implement the necessary support for ssh:// paths but as indicated above, git is not the only thing affected.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
I had filed an issue with VS Code https://github.com/Microsoft/vscode/issues/66046 but I also found https://github.com/Microsoft/vscode/issues/68808 which now has the on-deck tag on it. Probably because the issue writer provided a bit more details except in that case it was filed for the use case of debugging (which is why I requested VS Code itself tackle the issue instead of extension authors.) Technically this extension just needs to take a look at the filesystemprovider API and implement the necessary support for ssh:// paths but as indicated above, git is not the only thing affected.