Why this happens
This is caused because VS Code is released in two flavors. The base version, known as Code OSS has an open-source license, and the other, known as Visual Studio Code, includes some proprietary Microsoft code, and so it's released under a proprietary license.
Arch Linux's package repository, which only provides open-source software, uses the Code OSS flavor, which is not permitted to access the VS Marketplace due to restrictions placed by Microsoft (see the Arch Wiki)
Solution
Option 1 (recommended): Go to the Marketplace, search for the extension, then click "Version history" and download the latest version. You can then install the .vsix
file on VS Code as shown below
![How to install VSIX file in VS Code](https://cdn.statically.io/img/i.sstatic.net/dOyQe.png)
Option 2 (based on this comment): Install the proprietary version instead by downloading the tar
from the VS Code download page, then install it by running pacman -U code-stable-x64-xxxxxxxxxx.tar.gz
, replacing the file name with yours of course.