cask "visual-studio-code" do arch arm: "darwin-arm64", intel: "darwin" version "1.78.2" sha256 arm: "82cd258c647fa8ecf0d1df684d28793a06bbf09259e899ab606d7253e790bb44", intel: "d5a4480b537aadf5ea9702b4397cdceb97159f1f4082d6d1569f2839101987bb" url "https://update.code.visualstudio.com/#{version}/#{arch}/stable" name "Microsoft Visual Studio Code" name "VS Code" desc "Open-source code editor" homepage "https://code.visualstudio.com/" livecheck do url "https://update.code.visualstudio.com/api/update/#{arch}/stable/VERSION" regex(/"productVersion"\s*:\s*"(\d+(:?\.\d+)+)"/i) end auto_updates true app "Visual Studio Code.app" binary "#{appdir}/Visual Studio Code.app/Contents/Resources/app/bin/code" zap trash: [ "~/.vscode", "~/Library/Application Support/Code", "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.microsoft.vscode.sfl*", "~/Library/Caches/com.microsoft.VSCode.ShipIt", "~/Library/Caches/com.microsoft.VSCode", "~/Library/Preferences/ByHost/com.microsoft.VSCode.ShipIt.*.plist", "~/Library/Preferences/com.microsoft.VSCode.helper.plist", "~/Library/Preferences/com.microsoft.VSCode.plist", "~/Library/Saved Application State/com.microsoft.VSCode.savedState", ] end