Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
VS Code, VSCodium, Cursor, Zed, and Neovim: their logs and Chromium's caches
Țugui Dragoș731d247b4ffa
diff --git a/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swift b/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swiftindex 38c4210a..416727c9 100644--- a/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swift+++ b/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swift@@ -434,16 +434,35 @@ public enum DeveloperCaches {Folder("Library/Application Support/Code/Cache", .cache, source: "https://github.com/electron/electron/blob/main/shell/browser/net/network_context_service.cc#L94-L95"),Folder("Library/Application Support/Code/CachedData", .cache, source: "https://github.com/microsoft/vscode/blob/main/src/main.ts#L648-L666"),Folder("Library/Application Support/Code/CachedExtensionVSIXs", .downloads, source: "https://github.com/microsoft/vscode/blob/main/src/vs/platform/environment/common/environmentService.ts#L127"),+ Folder("Library/Application Support/Code/logs", .logs, source: "https://github.com/microsoft/vscode/blob/main/src/vs/platform/environment/common/environmentService.ts#L73-L79"),+ Folder("Library/Application Support/Code/Code Cache", .cache, source: "https://github.com/chromium/chromium/blob/main/content/browser/storage_partition_impl.cc#L1585"),+ Folder("Library/Application Support/Code/GPUCache", .cache, source: "https://github.com/chromium/chromium/blob/main/gpu/ipc/common/gpu_disk_cache_type.cc#L46"),+ Folder("Library/Application Support/Code/DawnWebGPUCache", .cache, source: "https://github.com/chromium/chromium/blob/main/gpu/ipc/common/gpu_disk_cache_type.cc#L48"),+ Folder("Library/Application Support/Code/DawnGraphiteCache", .cache, source: "https://github.com/chromium/chromium/blob/main/gpu/ipc/common/gpu_disk_cache_type.cc#L50"),+ Folder("Library/Application Support/Code/CachedProfilesData", .cache, source: "https://github.com/microsoft/vscode/blob/main/src/vs/platform/userDataProfile/common/userDataProfile.ts#L274"),+ Folder("Library/Caches/com.microsoft.VSCode.ShipIt", .downloads, source: "https://github.com/Squirrel/Squirrel.Mac/blob/main/Squirrel/SQRLUpdater.m#L814-L829"),]),Definition(id: "vscodium", name: "VSCodium", systemImage: "curlybraces", appBundleIdentifiers: ["com.vscodium"], folders: [Folder("Library/Application Support/VSCodium/Cache", .cache, source: "https://github.com/VSCodium/vscodium/blob/master/docs/migration.md#L23"),Folder("Library/Application Support/VSCodium/CachedData", .cache, source: "https://github.com/VSCodium/vscodium/blob/master/docs/migration.md#L23"),Folder("Library/Application Support/VSCodium/CachedExtensionVSIXs", .downloads, source: "https://github.com/VSCodium/vscodium/blob/master/docs/migration.md#L23"),Folder("Library/Caches/com.vscodium", .cache, source: "https://developer.apple.com/documentation/foundation/filemanager/searchpathdirectory/cachesdirectory"),+ Folder("Library/Application Support/VSCodium/logs", .logs, source: "https://github.com/microsoft/vscode/blob/main/src/vs/platform/environment/common/environmentService.ts#L73-L79"),+ Folder("Library/Application Support/VSCodium/Code Cache", .cache, source: "https://github.com/chromium/chromium/blob/main/content/browser/storage_partition_impl.cc#L1585"),+ Folder("Library/Application Support/VSCodium/GPUCache", .cache, source: "https://github.com/chromium/chromium/blob/main/gpu/ipc/common/gpu_disk_cache_type.cc#L46"),+ Folder("Library/Application Support/VSCodium/DawnWebGPUCache", .cache, source: "https://github.com/chromium/chromium/blob/main/gpu/ipc/common/gpu_disk_cache_type.cc#L48"),+ Folder("Library/Application Support/VSCodium/DawnGraphiteCache", .cache, source: "https://github.com/chromium/chromium/blob/main/gpu/ipc/common/gpu_disk_cache_type.cc#L50"),+ Folder("Library/Caches/com.vscodium.ShipIt", .downloads, source: "https://github.com/Squirrel/Squirrel.Mac/blob/main/Squirrel/SQRLShipItLauncher.m#L25-L26"),]),Definition(id: "cursor", name: "Cursor", systemImage: "curlybraces", appBundleIdentifiers: ["com.todesktop.230313mzl4w4u92"], folders: [Folder("Library/Application Support/Cursor/Cache", .cache, source: "https://github.com/microsoft/vscode/blob/main/src/vs/platform/environment/node/userDataPath.ts#L95-L105"),Folder("Library/Application Support/Cursor/CachedData", .cache, source: "https://github.com/microsoft/vscode/blob/main/src/main.ts#L666"),+ Folder("Library/Application Support/Cursor/logs", .logs, source: "https://github.com/microsoft/vscode/blob/main/src/vs/platform/environment/common/environmentService.ts#L73-L79"),+ Folder("Library/Application Support/Cursor/Code Cache", .cache, source: "https://github.com/chromium/chromium/blob/main/content/browser/storage_partition_impl.cc#L1585"),+ Folder("Library/Application Support/Cursor/GPUCache", .cache, source: "https://github.com/chromium/chromium/blob/main/gpu/ipc/common/gpu_disk_cache_type.cc#L46"),+ Folder("Library/Application Support/Cursor/DawnWebGPUCache", .cache, source: "https://github.com/chromium/chromium/blob/main/gpu/ipc/common/gpu_disk_cache_type.cc#L48"),+ Folder("Library/Application Support/Cursor/DawnGraphiteCache", .cache, source: "https://github.com/chromium/chromium/blob/main/gpu/ipc/common/gpu_disk_cache_type.cc#L50"),+ Folder("Library/Application Support/Cursor/CachedExtensionVSIXs", .downloads, source: "https://github.com/microsoft/vscode/blob/main/src/vs/platform/environment/common/environmentService.ts#L127"),]),Definition(id: "windsurf", name: "Windsurf & Devin", systemImage: "curlybraces", appBundleIdentifiers: ["com.exafunction.windsurf", "ai.cognition.devin"], folders: [Folder("Library/Application Support/Devin/Cache", .cache, source: "https://docs.devin.ai/desktop/cascade/workflows"),@@ -456,6 +475,11 @@ public enum DeveloperCaches {]),Definition(id: "zed", name: "Zed", systemImage: "curlybraces", appBundleIdentifiers: ["dev.zed.Zed"], folders: [Folder("Library/Caches/Zed", .cache, source: "https://github.com/zed-industries/zed/blob/main/crates/paths/src/paths.rs#L192-L199"),+ Folder("Library/Logs/Zed", .logs, source: "https://github.com/zed-industries/zed/blob/main/crates/paths/src/paths.rs#L228-L235"),+ Folder("Library/Application Support/Zed/hang_traces", .logs, source: "https://github.com/zed-industries/zed/blob/main/crates/paths/src/paths.rs#L221-L225"),+ Folder("Library/Application Support/Zed/remote_servers", .downloads, source: "https://github.com/zed-industries/zed/blob/main/crates/paths/src/paths.rs#L474-L478"),+ Folder("Library/Application Support/Zed/languages", .environments, source: "https://github.com/zed-industries/zed/blob/main/crates/paths/src/paths.rs#L438-L444"),+ Folder("Library/Application Support/Zed/debug_adapters", .environments, source: "https://github.com/zed-industries/zed/blob/main/crates/paths/src/paths.rs#L446-L452"),]),Definition(id: "sublime", name: "Sublime Text", systemImage: "curlybraces", appBundleIdentifiers: ["com.sublimetext.4", "com.sublimetext.3"], folders: [Folder("Library/Caches/Sublime Text", .cache, source: "https://www.sublimetext.com/docs/revert.html"),@@ -474,6 +498,7 @@ public enum DeveloperCaches {Folder(".local/share/nvim/lazy-rocks", .environments, source: "https://github.com/folke/lazy.nvim/blob/main/lua/lazy/core/config.lua#L61"),Folder(".local/share/nvim/mason", .environments, source: "https://github.com/mason-org/mason.nvim/blob/main/lua/mason/settings.lua#L9"),Folder(".local/state/nvim/lazy", .cache, source: "https://github.com/folke/lazy.nvim/blob/main/lua/lazy/core/config.lua#L220-L225"),+ Folder(".local/state/nvim/logs", .logs, source: "https://github.com/neovim/neovim/blob/master/runtime/doc/starting.txt#L1409-L1410"),]),// Cloud toolsDefinition(id: "gcloud", name: "Google Cloud CLI", systemImage: "cloud", appBundleIdentifiers: [], folders: [diff --git a/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swiftindex 6e2162b3..4ba863e0 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swift@@ -165,6 +165,10 @@ struct DeveloperCachesTests {// what they installed; renv each project's library; the Dart analysis server each plug-in's state.".hex", "Library/Caches/gleam/hex/hexpm", ".pub-cache", ".local/share/gem", ".cache/rebar3", ".stack", ".opam","Library/Caches/org.R-project.R/R/renv", ".dartServer",+ // VS Code and the editors built on it keep unsaved files in `Backups`; Zed its database and threads;+ // Neovim its swap and undo files.+ "Library/Application Support/Code", "Library/Application Support/VSCodium", "Library/Application Support/Cursor",+ "Library/Application Support/Zed", ".local/state/nvim",]// CocoaPods' spec repositories hold the ones a person added, which can carry unpushed work: only the CDN copy// of the public index, `trunk`, is a cache. nvm's folder is nvm and every Node it installed; only its download