From faeed81d4343ec0cbfe118c468f0896547a27b60 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Tue, 15 Dec 2020 12:40:44 -0700 Subject: [PATCH] feat: add vscode:clean script --- ci/dev/reset-vscode.sh | 12 ++++++++++++ package.json | 1 + 2 files changed, 13 insertions(+) create mode 100755 ci/dev/reset-vscode.sh diff --git a/ci/dev/reset-vscode.sh b/ci/dev/reset-vscode.sh new file mode 100755 index 00000000..889ef369 --- /dev/null +++ b/ci/dev/reset-vscode.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +set -euo pipefail + +main() { + cd "$(dirname "$0")/../.." + + cd ./lib/vscode + git add -A + git reset --hard +} + +main "$@" diff --git a/package.json b/package.json index c504dff4..c3681d1d 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "vscode": "./ci/dev/vscode.sh", "vscode:patch": "./ci/dev/patch-vscode.sh", "vscode:diff": "./ci/dev/diff-vscode.sh", + "vscode:reset": "./ci/dev/reset-vscode.sh", "build": "./ci/build/build-code-server.sh", "build:vscode": "./ci/build/build-vscode.sh", "release": "./ci/build/build-release.sh",