homebrew-cask/Casks/visual-studio-code.rb

29 lines
1.3 KiB
Ruby

cask 'visual-studio-code' do
version '1.27.2,f46c4c469d6e6d8c46f268d1553c5dc4b475840f'
sha256 'd1f2d046775406e6f339883dab432fcaa149e763ccfcd017556a46e890de6476'
# az764295.vo.msecnd.net/stable was verified as official when first introduced to the cask
url "https://az764295.vo.msecnd.net/stable/#{version.after_comma}/VSCode-darwin-stable.zip"
appcast 'https://vscode-update.azurewebsites.net/api/update/darwin/stable/VERSION'
name 'Microsoft Visual Studio Code'
name 'VS Code'
homepage 'https://code.visualstudio.com/'
auto_updates true
depends_on macos: '>= :mavericks'
app 'Visual Studio Code.app'
binary "#{appdir}/Visual Studio Code.app/Contents/Resources/app/bin/code"
zap trash: [
'~/Library/Application Support/Code',
'~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.microsoft.vscode.sfl*',
'~/Library/Caches/com.microsoft.VSCode',
'~/Library/Caches/com.microsoft.VSCode.ShipIt',
'~/Library/Preferences/com.microsoft.VSCode.helper.plist',
'~/Library/Preferences/com.microsoft.VSCode.plist',
'~/Library/Saved Application State/com.microsoft.VSCode.savedState',
'~/.vscode',
]
end