This is apparently a brand new problem that has been introduced into the newer versions of VS Code. I have FOUND A SOLUTION that seems to work well, by modifying a single line in the extension code. This is only valid for version 1.12.9 of the liximomo.sftp extension.
Here are the steps:
- Shutdown / Quit VS Code.
- Locate the following file:
Mac OS X:~/.vscode/extensions/liximomo.sftp-1.12.9/node_modules/ssh2-streams/lib/sftp.js
Windows:C:\Users\account_name\.vscode\extensions\liximomo.sftp-1.12.9\node_modules\ssh2-streams\lib\sftp.js
- Make a backup copy of the file.
- Modify line 388, which should be:
if ( code === STATUS_CODE . OK ) {
changing it to:if (code === STATUS_CODE.OK || code === STATUS_CODE.NO_SUCH_FILE) {
- Save the file.
- Relaunch VS Code; test by uploading or downloading from your sftp server. The error should not be present.