/vscode-unison-sync

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Unison Sync for Visual Studio Code

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.

Configuration

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.

Sample Config

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/"
}

Commands

The following commands are exposed in the command palette:

  • On Save: Enable
  • On Save: Disable

Links

License