Fix visual studio code Mac Could not create temporary directory: Permission denied

I got this error on Mac OS 10.14 VSCode with following error message
Could not create temporary directory: Permission denied

Solutions

cd ~/Library/Caches

sudo chown -R <username>:staff *

Problem solved 😀
References:
https://github.com/Microsoft/vscode/issues/63869
Photo by Francesco Ungaro on Unsplash