From 1f596d82c8da42ed2b5f1c25ba293ed952f6f68c Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Mon, 22 Apr 2019 19:29:05 -0500 Subject: [PATCH] Also delete extensions and settings to simulate a two-way mount Resolves #27 --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 67782b8..0699fc4 100644 --- a/main.go +++ b/main.go @@ -327,6 +327,9 @@ func rsync(src string, dest string, sshFlags string, excludePaths ...string) err // Only update newer directories, and sync times // to keep things simple. "-u", "--times", + // This is more unsafe, but it's obnoxious having to enter VS Code + // locally in order to properly delete an extension. + "--delete", "--copy-unsafe-links", src, dest, )...,