In the installer for VSCode seems to fail to instal claiming that the last command on this line Get-PackageCacheLocation cannot be found
I am likely to just repave this box anyway but thought it best to raise this as an issue in case anyone else gets this
see below image of this issue

could be a install problem with the chocolatey-core.extension package that we use in the package.
try forcing a re-install of that extension (seen this problem pop up for several issuers, across different packages and a re-install usually helped).
just do choco install chocolatey-core.extension --force
That seems to have fixed it
I will be building a new machine to test on as I'm trying to automate a full clean dev build environment from scratch so will see if this crops up again in future.
As I said, I've heard that failure happening from time to time, but compared to the amount of downloads the extension have had, it's rare.
If it happens again, just try reinstalling it again and it should be fixed (hopefully you don't have to though).
For posterity, I am still running into this.
choco install -f chocolatey-core.extension
choco install -f vscode
Works for me too.
Most helpful comment
could be a install problem with the
chocolatey-core.extensionpackage that we use in the package.try forcing a re-install of that extension (seen this problem pop up for several issuers, across different packages and a re-install usually helped).
just do
choco install chocolatey-core.extension --force