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

Doesn't work with SFTP + Keyboard Shortcut #93

Open
eliasfarah opened this issue Apr 8, 2021 · 0 comments
Open

Doesn't work with SFTP + Keyboard Shortcut #93

eliasfarah opened this issue Apr 8, 2021 · 0 comments

Comments

@eliasfarah
Copy link

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.

  • OS: [Win 10 , Linux- PopOS! 20.10]
  • VSCode Version [1.55]
  • Extension Version [0.0.16]

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant