I updated Ubuntu 14 days ago and have been using it trouble free for that time - in the last 24 hours though my screen would freeze and crash every time I was working with VS Code.
I've seen other recommended solutions like allocating additional swap space using file in my root directory: or launching VSCode with extensions disabled (code --disable-extensions) The first wouldn't work as i have more than 70GB and and running VS Code wouldn't eat all the cores memory. tried to disable extensions and it didn't fix the problem.
Update: I have since uninstalled the app hoping it would fix the problem - if running VS Code is actually the problem and the freezing hasn't stopped. Do I uninstall Ubuntu if I can't restore software to 16.04?
--disable-gpu
solved it for me (U 20.04)