liximomo / vscode-sftp

Super fast sftp/ftp extension for VS Code
MIT License
1.5k stars 256 forks source link

Is it possible to have OS based logic in sftp.json file? #1018

Open fulmar2 opened 11 months ago

fulmar2 commented 11 months ago

Just a question: I develop on multiple platforms, and it is necessary for me to specify different host settings depending on which platform I'm coding on. In the sftp.json file, I would like to use:

"protocol": "sftp",
"port": 22,
"remotePath": "/home1/****/public_html/****/",

When coding on my mac...

and

"protocol": "ftp",
"port": 21,
"remotePath": "/public_html/****/",

when coding on my raspberry pi. This is an attempted work-around for an issue I published here

Thank you in advance for your help.