vscode-rsync icon indicating copy to clipboard operation
vscode-rsync copied to clipboard

Sync-RSync trying to run when not being used - "Sync-Rsync: you must configure a remote"

Open felipegb94 opened this issue 3 years ago • 1 comments

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?

felipegb94 avatar Apr 04 '21 21:04 felipegb94

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.

jeb5 avatar Jun 27 '21 23:06 jeb5