現象
手動で更新をかけると右下に以下のエラーが出ていました。
Cannot update while running on a read-only volume. The application is on a read-only volume. Please move the application and try again. If you're on macOS Sierra or later, you'll need to move the application out of the Downloads directory. This might mean the application was put on quarantine by macOS. See this link for more information.
確認したこと
ダウンロードフォルダにあると更新ができないという情報があったので、ダウンロードフォルダを確認したが Visual Studio Code.app はアプリケーションフォルダに正しく存在していた。
試したこと
エラーメッセージ中に以下のリンクが記載されていたので
サイトに記載されていたコマンドを実行して所有者や属性変更など実施したが改善せず。
sudo chown $USER ~/Library/Caches/com.microsoft.VSCode.ShipIt/*
xattr -dr com.apple.quarantine /Applications/Visual\ Studio\ Code.app
解決できた方法
入れ直してみました。
ネットからダウンロードしたものをインストールしていたのですが、homebrew で入れてみます。
homebrew が予め入っている前提です。
アンインストール
ファインダーからアプリケーションの中にある Visual Studio Code.app を右クリックし、[ゴミ箱に入れる]を実行。
インストール
先に homebrew 自身をアップデートします
brew upgrade
VSCodeのインストールをします
brew install visual-studio-code
コマンドで起動
code
バージョンを確認して新しくなっていることを確認しました。