Release out now to handle autofix
I just spent about half an hour reading through Github issues and source code of VSCode & VSCodium to figure out how to get Pylance working. In short:
%LOCALAPPDATA%\Programs\VSCodium\resources\app\product.json
- The workaround described here suggests editing a
product.json
file, butfind $HOME/.var/app/com.vscodium.codium -name 'product.json'
returns nothing - Found product.json should be editable #22 which links to customize the extensions gallery VSCodium/vscodium#674
- The linked PR contains a patch which looks for a user-provided
product.json
to merge into the compiled-in values - by default, noproduct.json
is included in shipped builds - Dropping the following file into
$HOME/.var/app/com.vscodium.codium/config/VSCodium/product.json
lets me run Pylance:
{
"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"
}
}
As this is a rather specific workaround to a specific problem, perhaps just including a note somewhere is enough to spare others from having to go through the same journey.