vscode-rsync
vscode-rsync copied to clipboard
Sync-RSync trying to run when not being used - "Sync-Rsync: you must configure a remote"
I just installed sync-rsync for VSCode on my Linux machine hoping to use it only on projects that require syncing code I am running on a remote machine.
When I work on a project that I am running locally and do not need syncing, and what I have done in the past is to simply not include this project path in the sync-rsync.sites
. In fact, right now my sync-rsync.sites
is an empty array.
Even though sync-rsync.sites
is empty, every time I save a file on VSCode now, I get the sync-rsync message: "Sync-Rsync: you must configure a remote"
.
I have sync-rsync setup in another workstation and in that workstation if I do not include a project path in the sync-rsync.sites
, then sync-rsync
would simply not try to run.
Is this expected behavior? Do I have to explicitly disable the Sync-Rsync extension while I am not using it?
A workaround might be to set "sync-rsync.onSave": false
in settings, and then for projects that need to be synced, override this to "sync-rsync.onSave": true
in the workspace settings.
This way, synchronising a project is opt-in, and you won't have to disable the extension for other projects.