First of all, open the vscode editor and check the commit version from "About Visual Studio Code" tab, it should be something like 2b35e1e6d88f1ce073683991d1eff5284a32690f
.
Save the bellow script and pass it the commit code
to run will do the job.
#!/bin/bash
code_server=~/vscode-server-linux-x64.tar.gz
curl -L https://update.code.visualstudio.com/commit:${@}/server-linux-x64/stable > $code_server
[ -d ~/.vscode-server/bin/${@} ] || mkdir -p ~/.vscode-server/bin/${@}
cd ~/.vscode-server/bin/${@} && \
tar -xvzf $code_server --strip-components 1
rm -rf $code_server