Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compare to remote file system (sftp) using VS Code API #170

Open
mprotasov opened this issue Nov 25, 2024 · 0 comments
Open

Compare to remote file system (sftp) using VS Code API #170

mprotasov opened this issue Nov 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mprotasov
Copy link
Collaborator

We can implement comparing with remote files/folders using VS Code API and additional extension.
For SFTP it is SSH FS (https://marketplace.visualstudio.com/items?itemName=Kelvin.vscode-sshfs). Important - we should use v1.24.1 (as in H marketplace), latest 1.26.1 is slightly broken.

Proposed pipeline:

  1. User has SSH FS installed on their VS Code
  2. User calls command 'Compare with remote file/folder' and enters desired uri (e.g. ssh://user@localhost:2222/data/)
  3. Message with pair of uris is sent to sudu-editor
  4. For local folders/files, sudu-editor retrieve needed information (folder listing, file data, metadata) using existing node.js fs mechanism
  5. For remote folders/files, sudu-editor calls method of FileAccessProvider, registered by VS Code extension. FileAccessProvider reads data using VS Code fs API and returns it to sudu-editor. Access to sftp (for example, password prompt) is handled on this step by SSH FS

I've tested SSH FS extension with various uris (folders and files), that do not belong to VS Code workspace. Everything seems to work fine

@mprotasov mprotasov added the enhancement New feature or request label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant