Natizyskunk / vscode-sftp

Super fast sftp/ftp extension for VS Code
Other
373 stars 68 forks source link

Global `privateKeyPath` in vscode settings and workspace settings #288

Open leandro-cyberproject opened 1 year ago

leandro-cyberproject commented 1 year ago

Is this a similar or duplicate feature request?

Is your feature request related to a problem? Please describe. First of all, sorry if this has already been asked or if it is actually already implemented, I have been searching for half an hour and didn't find anything, and VSCode isn't helping. I have 30+ servers with at least 5 different profiles on each one, all for different projects. With the old "push" extension I could set a privateKeyPath option in vscode global settings or in workspace settings, and it would use it if the project profile didn't have a private key or a password set up. With SFTP instead I need to copy/paste the same "privateKeyPath": "/home/myusername/.ssh/id_rsa". In. Every. Single. Profile.

Describe the solution you'd like A global "sftp.privateKeyPath" that the extension uses as default if "protocol" is "sftp" and no "privateKeyPath" nor "password" is provided in the current profile. I'm willing to put the effort in myself, if someone walks me through the extension file tree, I'm familiar with JS/TS but not with VSCode extension layout.

Describe alternatives you've considered Copying the same configuration string in every profile, as I recreate them from Push ones, it works for now but it will be a pain as soon as I have to generate a new key the next time.

Does this project help you?

martbean commented 9 months ago

+1 for this. I work on multiple computers using the same files and the private key path/password is different for each, so I can't set it on a per-project basis. Having it in the workspace settings would work perfectly.

I'm also using Push which is no longer updated and it seems to have stopped working with the latest VSC update.