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?
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With