Skip to content

Solution to Pylance not working with VSCodium #1640

Description

@felix9743

Hi everybody, like you, when version 2023.8.20 of Pylance was released, the bypass trick no longer worked and well given that I was on vacation, I had thought that someone would find a new solution. But today, we are at version 2023.9.10 (and VSCodium 1.82.2) and it seems to me that there is still no reliable solution to solve the problem...

So I pulled my sleeves back and I did the tests again and again... Until when fiddle the files of the extension itself, I managed to make it work again! This method is terribly stupid and not the most convenient, but it worked on 2 of my computers with different configurations and it has the advantage of not need to change the name of the application anymore.

So to make it simple, here are the changes to be made to be able to install the extension and remove the verification (I only have Windows, but it should be the same under Linux and I don't know for MAC):

  1. Edit the C:\Program Files\VSCodium\resources\app\product.json or create a product.json in C:\Users\YOUR_USERNAME\AppData\Roaming\VSCodium

  2. Set the extensionsGallery value:

	"extensionsGallery": {
		"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
		"cacheUrl": "https://vscode.blob.core.windows.net/gallery/index",
		"itemUrl": "https://marketplace.visualstudio.com/items"
	},
  1. Install the Pylance and Python extension. Close the VSCodium when finished.

  2. Open this path C:\Users\YOUR_USERNAME\.vscode-oss\extensions\ms-python.vscode-pylance-2023.X.XX\dist\

  3. Rename extension.bundle.js to extension.bundle.js.bak (backup).


Here, I hope it'll be useful to you. If someone wants to modify DOCS.md to put the explanations or pointed this issue, it would be cool for the others users ^^

PS: Sorry for my english, I not have habitude to create Issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions