Fly, Penguin!

I blog so I don't forget.

Use VSCodium with Microsoft's proprietary marketplace

1 minute read #solved #tools: vscode #fuckers

Yeah, MicroSoft again. The Company That Embraced Open Source (as long as it’s useful to them).

The original VS Code builds have telemetry. Also, a closed source marketplace. Because of that, VSCodium was created. And VSCodium is good.

Unfortunately, MicroSoft is still anything but a “good” company, and it does open source purely out of egoistic motives. So it developed a (really good) open source editor (VS Code), but with closed source extensions (Pylance), which are only available on their marketplace, and don’t run on alternative builds of VS Code. Because, hey, more lock-in, more good, ya know?

So if you want to run Pylance (a good language server) with VS Codium, you have to switch VS Codium back to the original market place, and modify the editor’s “name” identification.

Here’s how to do that:

  • on a Mac, create the file product.json in the folder $HOME/Library/Application Support/VSCodium
  • enter the following content:
    {
      "nameShort": "Visual Studio Code",
      "nameLong": "Visual Studio Code",
      "extensionsGallery": {
        "serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
        "cacheUrl": "https://vscode.blob.core.windows.net/gallery/index",
        "itemUrl": "https://marketplace.visualstudio.com/items"
      }
    }
    

Then you cann install Pylance from the official marketplace, and it should run.

Sources: