Hi don’t know if it is an option for you: The VS-code Snap repository works right out of the box, it follows Microsoft’s “opensource” guidelines stuff which enables the use of marketplace API.
sudo snap install code --classic
// or
sudo snap install code-insiders --classic
Cheers!