Skip to content
The Chat Archive
claude-2.0· Anthropic Arena Human Preference 55K

how to revert to an earlier Pylance extension in vscode

  1. User

    how to revert to an earlier Pylance extension in vscode

  2. Assistant

    Here are a few ways to revert to an earlier version of the Pylance extension in VS Code:

    • Open the Extensions view (Ctrl+Shift+X), search for Pylance, click the ellipses menu and select "Install Another Version". This will let you browse and install an earlier version.

    • Download the VSIX file for the version you want from the Pylance release page on GitHub. Then go to the Extensions view, click the ellipses menu, select "Install from VSIX" and select the file you downloaded.

    • Delete the Pylance extension and reload VS Code. Then open the Extensions view, search for Pylance, and install it again. This will install the latest stable version.

    • Go to the extensions folder on your machine (the location varies by OS), find the pylance folder, and delete the folders for any versions higher than the one you want. Reload VS Code and it will use the highest remaining version.

    • If you originally installed Pylance as a workspace extension, you can edit the extensions.json file in .vscode of your workspace and change the version there.

    So in summary, use the extensions view to install an earlier VSIX, delete newer versions manually, or edit the extensions config for the workspace to control the version. Just make sure to reload VS Code after changing the installed version.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.