liximomo / vscode-sftp

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

I see one host, from all #809

Open RuPHuSUA opened 4 years ago

RuPHuSUA commented 4 years ago

Hi! It os my sftp.json conf

[ { "name": "test2", "host": "192.168.111.86", "protocol": "sftp", "port": 22, "username": "root", "password": "test", "remotePath": "/", "uploadOnSave": true }, { "name": "test", "host": "192.168.111.88", "protocol": "sftp", "port": 22, "username": "root", "password": "test", "remotePath": "/", "uploadOnSave": true } ]

I see one host in explorer, pls help Screenshot 2020-08-08 at 23 22 15

wighthat commented 3 years ago

Hi, I just had the same problem. Fixed it by adding unique contexts to each entry, eg in your case :

[ { "name": "test2", "host": "192.168.111.86", "protocol": "sftp", "context" : "first context", "port": 22, "username": "root", "password": "test", "remotePath": "/", "uploadOnSave": true }, { "name": "test", "context" : "second context", "host": "192.168.111.88", "protocol": "sftp", "port": 22, "username": "root", "password": "test", "remotePath": "/", "uploadOnSave": true } ]

Hope this helps!