Open DBangLab opened 4 years ago
if saving a file while having the other profile activated nothing is uploaded to the server.
I have this problem. I have five folders in my workspace. Each has it's own sftp.json. In each of those there is a "dev" and a "prod" Profile with "dev" set to default. Up until now this has worked perfectly.
Now I want to upload some files to "prod" in one folder, so I tried to Set Profile
- it lists dev and prod for each folder (so 10 profiles). OK, I assume this is just because I gave them all the same name.
So, I renamed the Profiles in each sftp.json to {folder name}-dev and {folder name}-prod...
And now it becomes clear that Set Profile
isn't set on a per folder/config basis. Because if I Set Profle
folder-a-dev and switch to folder-b and try to Upload, it complains there is no Profile called folder-a-dev.
So, the fact it was working as expect before was pure fluke.
I now see that I could choose any one of the "dev" or "prod" Profiles I orginally had and SFTP will just look for a Profile with that name in the sftp.json of the current folder. Which is manageable but not all working as I'd expect.
Do you read the FAQ?
Describe the bug Having multiple projects located on different servers using the same workspace seems to message multiple sftp config profiles. ( see screenshots for example files )
To Reproduce VSCode is having both projects in one workspace. e.g. Projects
both of these projects has their own sftp.json config in their own .vscode folder and they are both having a dev and a live folder on the server. Workflow is like this: always save to dev version as default and then when everything is working as it should, switch and sync to live version.
Project A setup
Project A on local: d:/sftp/project-a
SFTP Config: d:/sftp/project-a/.vscode/sftp.json
Project B setup
Project B on local: d:/sftp/project-b
SFTP Config: d:/sftp/project-b/.vscode/sftp.json
sftp will "randomly" set a profile to be active instead of using current workspace folder root/.vscode/sftp.json and having the wrong profile seems to just report
[07-07 10:28:00] [info] Using profile: project-b-dev
when saving a file in project-a.Expected behavior I except it to use the current workspace .vscode folder for reading which defaultProfile to use at current time, each project could be located on a different server (just in this example i am using localhost) but they are in the same workspace because maybe of the features are connected.
Screenshots https://filebin.net/pon549uo4pvv98zp
Desktop (please complete the following information):
Extension Logs from Startup - required
I UNSET the profile and then it doesn't seem to do anything at all.