liximomo / vscode-remote-fs

Working with any file in everywhere with vscode.
MIT License
166 stars 17 forks source link

Doesn't work with SFTP + Keyboard Shortcut #93

Open eliasfarah opened 3 years ago

eliasfarah commented 3 years ago

Describe the bug

I integrate with SFTP + (CTRL +S) Keyboard Shortcut -> SFTP Upload Active file. It only works if you press twice (CTRL +S). It seems first time press (CTRL +S) opens the connection e the second time upload the file.

To Reproduce Steps to reproduce the behavior:

  1. Configure your remote-fs "DEV": { "host": "Your HOST", "protocol": "sftp", "port": 22, "username": "username", "privateKeyPath": "/path/to/key.pem", "uploadOnSave": false, "ignore": [".vscode", ".git", ".DS_Store", ".idea"], "connectTimeout" : 20000 },

  2. Configure your SFTP Config

{ "profiles": { "DEV": { "remote": "DEV", "remotePath": "/path/destination" } }, "defaultProfile": "DEV" }

  1. Open Keyboard Shortcuts
  2. Remove CTRL+S shortcut to all actions
  3. Add CTRL+S Shortcut to SFTP Upload active file
  4. Reopen VSCODE and try press CTRL+S

Expected behavior I Expect press one time to upload the file. When SFTP works without remote fs this behavior doesn't happens.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information): I tried with Windows and Linux and the same problem.

Extension Logs - required You can get the logs from View > Output > remote-fs.

[04-08 09:41:13] [info] Using profile: DEV [04-08 09:41:16] [info] Using profile: DEV [04-08 09:41:20] [info] Using profile: DEV [04-08 09:41:24] [info] Using profile: DEV [04-08 09:41:27] [info] Using profile: DEV [04-08 09:41:32] [info] Using profile: DEV [04-08 09:41:35] [info] Using profile: DEV