I have noticed that the VSCode installer always end up with error in OpenSuse TumbleWeed edition. Here is my alternative solution to the problem.
Launch your console and issue the following
curl -sSL -o code.tar.gz https://go.microsoft.com/fwlink/?LinkID=620884 sudo mkdir -p /opt/code && sudo tar zxf code.tar.gz -C /opt/code --strip-components=1 sudo ln -sf /opt/code/code /usr/local/bin
This will install VS Code on Suse , in case it didn’t update repository and try install again by using following code
sudo zpper refresh sudeo zypper install code
Create Install script
We can create a intall.sh script to install the app. Add those three lines of scripts to the file.
It also require that , the files has permission to execute the file. Set the file permission using
chmode +x install.sh
Now we are ready to run the file by running the ./install.sh command.