Things I forgot to mention in the article:
To make VNC work, your main computer and the Raspberry Pi must be on the same WiFi network.
To prevent auto-updating Visual Studio Code on the Raspberry Pi, you need to run the following command:
sudo apt-mark hold code
You should also turn off background updates and extension auto-updates in VSCode, so things don't break.