A Random Thought..._

While catching up on comp.sys.raspberry-pi I noticed a bit of an uproar over Raspbian adding the VSCode package repository to the system. All my Raspberry Pis are headless appliances so a quick addition to my Ansible playbook made quick work of that.
- name: disable microsoft repository
  shell: if grep -q '^deb.*microsoft\.com'
    /etc/apt/sources.list.d/vscode.list; then
    sed -i '/^deb.*microsoft\.com/ s/^/# /'
If you don't use Ansible, this sed(1) command should do what you want.
sed -i '/^deb.*microsoft\.com/ s/^/# /' /etc/apt/sources.list.d/vscode.list
03/05/2021 @21:23