Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install extension from a specific repo/branch on GitHub?

I'm using a VS Code extension that has a bug. It has been fixed in a pull request on GitHub, but the repository seems to be abandoned and the PR is not getting merged.

How do I install an extension directly from a specific repo/branch on GitHub?

like image 492
Andrey Mikhaylov - lolmaus Avatar asked Jun 06 '18 07:06

Andrey Mikhaylov - lolmaus


People also ask

How do I clone a branch using the Visual Studio code in git?

Open the command palette with the key combination of Ctrl + Shift + P . At the command palette prompt, enter gitcl , select the Git: Clone command, and press Enter. When prompted for the Repository URL, select clone from GitHub, then press Enter. If you are asked to sign into GitHub, complete the sign-in process.

How do I link a git repository to Visual Studio code?

Opening a repository Once you have installed the GitHub Repositories extension, you can open a repository with the GitHub Repositories: Open Repository... command from the Command Palette (Ctrl+Shift+P) or by clicking the Remote indicator in the lower left of the Status bar.


1 Answers

  • Install vsce:

    Make sure you have Node.js installed. Then run:

    npm install -g vsce 
  • Check out the GitHub repo/branch you want.

  • Depending on the project, you may need to install its dependencies (npm install or whatever package manager you use). Some can be packaged without dependencies.

  • Run the following in the root of the project (see the official docs for more detail about the process):

    vsce package  # Generates a .vsix file code --install-extension my-extension-0.0.1.vsix 
like image 84
AndyO Avatar answered Oct 04 '22 09:10

AndyO