Release out now to handle autofix
![image](https://private-user-images.githubusercontent.com/98753696/291330396-6dedb3e2-3e9e-42ef-b315-f382d6f48a96.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkwMTcxMTEsIm5iZiI6MTcxOTAxNjgxMSwicGF0aCI6Ii85ODc1MzY5Ni8yOTEzMzAzOTYtNmRlZGIzZTItM2U5ZS00MmVmLWIzMTUtZjM4MmQ2ZjQ4YTk2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIyVDAwNDAxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI3NWI4YTRiZGE4NjViZjg4NjcxNTQ3NWJlZjk1ZGNiMTcyNzc2YmQxM2QzODBmNTA2ZWNjMzIxNTFjZDA5MWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.PTINy4fBtXvUWVMXc4ib_s8N6ElYr5PMVBVTaQDtmM8)
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.