Steps to Reproduce:
From the Netherlands, UK, USA and Turkey, the checksum is 154a316eb6785c126e2fccd80a5c76291321ca2d6945e7a2a13f2e262be89bde, but from Brazil it's 39e953dc16f248399d286cdca1653345ff32927affc0256ea4a62607f8f5f232.
This was discovered by Arch Linux users here (see comments).
I'm also having this problem.
Will need to wait for @joaomoreno for this one
The .tar.gz file provided by the Vscode site is corrupted.
Note that the original file usually stands around 65mb. This file, downloaded, is 14mb.

I did a test downloading the file through a proxy site. I opted for a European server. Now the downloaded file is not corrupted. You can analyze in the simulation illustrated below:

If you cannot wait I've used the process described by @xereda to download the proper file, and then moved it to where my AUR builds happen (I'm using Manjaro Linux and its Package Manager).
Since the visual-studio-code-bin folder was not destroyed after the first failed attempt we can just replace the "code_x64_1.31.1.tar.gz" file:
mv code-stable-1549938209.tar.gz /tmp/pamac-build/visual-studio-code-bin/code_x64_1.31.1.tar.gz
And when trying again it skips the download process and uses the good file, passing the sha256sum test.
I downloaded the file from Brazil today and the checksum was correct this time.
@eduardomezencio Hi Eduardo,
I tried again today, but it's still corrupted.
If you cannot wait I've used the process described by @xereda to download the proper file, and then moved it to where my AUR builds happen (I'm using Manjaro Linux and its Package Manager).
Since the visual-studio-code-bin folder was not destroyed after the first failed attempt we can just replace the "code_x64_1.31.1.tar.gz" file:
mv code-stable-1549938209.tar.gz /tmp/pamac-build/visual-studio-code-bin/code_x64_1.31.1.tar.gzAnd when trying again it skips the download process and uses the good file, passing the sha256sum test.
@skatiruas
This palliative is acceptable. Will solve the problem for now.
https://github.com/Microsoft/vscode/issues/68736
@xereda Can you try again? This download should be fixed by now. I've opened a support ticked on our CDN servers.
@joaomoreno Not yet resolved.
Remember that the version in issue question is Linux x64.
Linux 64 Vscode download Page: https://code.visualstudio.com/docs/?dv=linux64
Download file URI: https://go.microsoft.com/fwlink/?LinkID=620884

incorrect checksum:
sha256sum code-stable-1549938209.tar.gz 57.2s  ter 19 fev 2019 07:41:45 -03
39e953dc16f248399d286cdca1653345ff32927affc0256ea4a62607f8f5f232 code-stable-1549938209.tar.gz
Same error here (_yet_).
I've purged the CDN cache for /stable/1b8e8302e405050205e69b59abb3559592bb9e60/code-stable-1549938209.tar.gz. The file should be OK any time soon.
I also have an open ticket with the CDN provider. Let's see if they find the issue.
For the guys still having issues, try erasing your package manager's cache. In my case, deleting /.cache/yay/visual-studio-code-bin and then attempting a full system upgrade yay -Syu triggered the download of the file with the correct checksum. You might have to google where your package manager's cache folder is located.
@joaomoreno @dcelasun
Congratulations on the help of everyone involved. The problem was solved. I just tested with the yay package manager.
Checksums now match, thanks a lot! :wink:
Thanks for the confirmations!
Most helpful comment
I've purged the CDN cache for
/stable/1b8e8302e405050205e69b59abb3559592bb9e60/code-stable-1549938209.tar.gz. The file should be OK any time soon.I also have an open ticket with the CDN provider. Let's see if they find the issue.