vscode-sftp: VSCode Bug: Shortcut do not work properly on v1.25.0

	{
		"key": "cmd+d",
		"command": "sftp.trans.remote",
		"when": "editorFocus"
	},

Expected Behavior

Upload current file on editor focus. Upload from sidebar menu is working fine.

Actual Behavior

Showing to select a folder (?)

Specifications

  • Version: 1.25.0-insider using workspace
  • Platform: High Sierra 10.13.5

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 15 (6 by maintainers)

Most upvoted comments

Another temp solution, changer, change keybildings.js, add "args": [null]:

{
    "key": "ctrl+u",
    "command": "sftp.trans.remote",
    "when": "editorTextFocus",
    "args": [null]
},

but is bug: selectFileFallbackToConfigContext is used for sftp.trans.remote and this not have sense. Beaus from command palete: SFTP: Upload work like SFTP: Sync to Remote

Please use selectFileOnly for sftp.trans.remote

@liximomo This issue is reproducible in latest public release of VSCode (1.25.0), so it is not just insider builds now. I just updated VSCode to 1.25 and I see other extensions throwing errors like TypeError: Cannot read property 'document' of undefined. vscode-sftp doesn’t log any errors even with "sftp.printDebugLog": true but those error messages might be a good pointer for you.

Fix in v1.3.0.