echo "VS Code without MS branding/telemetry/licensing."
echo "Uses the Open VSX extension registry. rather than the microsoft registry"
echo "like atom, the license of vscode-cpptools prevents using it out of non-free" 
echo "MS VS Code and platformio depends on it. Until platformio can support clang" 
echo "via vscode-clangd instead pio cannot be distributed via VSX registry."
echo "See: http://github.com/platformio/platformio-vscode-ide/issues/1802"
echo "     http://github.com/clangd/vscode-clangd"

#wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg \
#    | gpg --dearmor \
#    | sudo dd of=/usr/share/keyrings/vscodium-archive-keyring.gpg
#
#echo 'deb [ signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg ] https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/debs vscodium main' \
#    | sudo tee /etc/apt/sources.list-available/vscodium.list
#
#ln -sf /etc/apt/sources.list-available/vscodium.list /etc/apt/sources.list.d/vscodium.list
#
#sudo apt update
#sudo apt install codium

# Microsoft VSCode
#wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
#sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
#
#sudo sh -c 'echo "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list-available/vscode.list'
#
#sudo ln -sf /etc/apt/sources.list-available/vscode.list /etc/apt/sources.list.d/vscode.list
#
#rm -f packages.microsoft.gpg
#
#sudo apt update
#sudo apt install code # or code-insiders
#
## VS Code explorer uses gvfs for its 'trash management', we've stopped having it on our systems because it fills up
## with crap we don't want in a place we don't want it. Delete what you want, when you want and suffer the consequences.
## You did have what you needed to keep under version control, didn't you.
## sudo apt-get install gvfs-bin
