This extension allows running unison
against a remote server.
Note Inspired by vscode-runonsave.
Important Both the local and remote server must have unison installed and the version should be the same to avoid issues.
Add "josegonzalez.unison-sync" configuration to user or workspace settings.
- "autoClearConsole" - (optional) clear VSCode output console every time commands run. Defaults to false.
- "profile" - (optional) The name of a profile to use for syncing (takes precedence over remote option)
- "remote" - (optional) A remote path to sync
- "shell" - (optional) shell path to be used with child_process.exec options that runs commands.
This sample configuration will sync the local directory to the remote server example.com under the /root/test
directory.
"josegonzalez.unison-sync": {
"remote": "ssh://root@example.com/test/"
}
The following commands are exposed in the command palette:
- On Save: Enable
- On Save: Disable