skip to Main Content

I need to download .vsix versions of some necessary extensions for my coding environment (python, pylance, etc) for an offline machine, but there does not appear to be a way to do so currently.

I’ve tried looking up instructions but even the official instructions appear to be out of date, and so do older responses to similar questions on here on stackoverflow. Did something change? Is Microsoft no longer allowing .vsix downloads directly?

P.S. I tried the old method from the older question and it does download the VSIXPackage as per expected. However this doesn’t seem to be the intended way to download .vsix. What happened?

2

Answers


  1. Chosen as BEST ANSWER

    Found part of the solution! Thanks to @wjandrea for asking my VS Code version. The official instructions mention the need for VS Code 1.96 or greater and I'm on 1.94.1 currently. This explains the current "correct" method part, but I have yet to see a kosher option to download a .vsix of a previous version, or how to properly download .vsix from browser. It seems to be an intentional removal by Microsoft, although a bit of a strange one.


  2. Please see this GitHub recipe.

    In older Stackoverflow answers, I saw the examples of Visual Studio Marketplace products with links to the .vsix files of the extensions. I don’t think that these files are presently available unless some author decides to publish one.

    Not to worry. If nothing else works, you can easily recreate a .vsix.

    To do so, you need to

    • Click on the extension repository on the page of the extension product on Visual Studio Marketplace.
    • Load the repository page and then clone or download the extension code to your local directory.
    • In your local directory with the copy of the product, command: vsce package.

    This way, you can recreate a .vsix version of the package not only for the version presented at the Visual Studio Marketplace but for any earlier release.

    To use vsce, you need to have node.js, npm and installed vsce itself. You can find everything in the documentation published, in particular, on the documentation page Publishing Extensions. In your case, you want to use this documentation not for publishing, but only for the creation of a .vsix package. And that package can later be used for alternative ways of installation, for example, off-line.

    It looks like you are talking about Visual Studio Code extension. If so, you may think of yet another, alternative method of getting the extension product files. It works if you have VSCode with an already installed extension. In this case, you need to locate your VSCode data use the directory data/extension. The exact location of this directory depends on the platform and the type of VSCode installation. In particular, if you have a portable VSCode installation, you will find data/extension in the VSCode installation directory, a sibling directory to bin. Inside data/extension directory, you can locate the directory of the extension you need and run vsce package.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search