From b2987b0bb94566c2c4cb4d16dd91bde27b7b37b1 Mon Sep 17 00:00:00 2001 From: tw93 Date: Mon, 9 Feb 2026 19:47:50 +0800 Subject: [PATCH] feat: add VS Code ShipIt cache directories to cleanup list #427 --- lib/core/app_protection.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/core/app_protection.sh b/lib/core/app_protection.sh index bb5fcde..ce03507 100755 --- a/lib/core/app_protection.sh +++ b/lib/core/app_protection.sh @@ -1103,7 +1103,11 @@ find_app_files() { [[ "$app_name" =~ Godot|godot ]] && [[ -d ~/Library/Application\ Support/Godot ]] && files_to_clean+=("$HOME/Library/Application Support/Godot") # 6. Tools - [[ "$bundle_id" =~ microsoft.*vscode ]] && [[ -d ~/.vscode ]] && files_to_clean+=("$HOME/.vscode") + if [[ "$bundle_id" =~ microsoft.*[vV][sS][cC]ode ]]; then + [[ -d "$HOME/.vscode" ]] && files_to_clean+=("$HOME/.vscode") + [[ -d "$HOME/Library/Caches/com.microsoft.VSCode.ShipIt" ]] && files_to_clean+=("$HOME/Library/Caches/com.microsoft.VSCode.ShipIt") + [[ -d "$HOME/Library/Caches/com.microsoft.VSCodeInsiders.ShipIt" ]] && files_to_clean+=("$HOME/Library/Caches/com.microsoft.VSCodeInsiders.ShipIt") + fi [[ "$app_name" =~ Docker ]] && [[ -d ~/.docker ]] && files_to_clean+=("$HOME/.docker") # 6.1 Maestro Studio