#!/bin/bash # CoreDesktop installs VSCodium, not VS Code. Remove VS Code once; its settings # stay in ~/.var/app/com.visualstudio.code. For extensions only Microsoft's # marketplace has, such as Remote-SSH, install it again yourself and update # leaves it alone: flatpak install flathub com.visualstudio.code if flatpak info --system com.visualstudio.code &> /dev/null; then echo "Removing VS Code (VSCodium stays)..." sudo flatpak uninstall --system --noninteractive com.visualstudio.code || exit 1 fi exit 0