This entry is my note about how to install a VS Code extension on a on-going development branch.
- Pull the branch from the GitHub repository to your local environment
- Install vsce.
vsce packageand package the project into a VSIX file to make it installable.
- Install the extension from the VSIX file created in step 3.
Pulling the branch from the GitHub repository to your local environment
Since I wanted to submit pull requests, I forked the official repository to my account and then imported it to my local environment.
Check out to the branch you want to work on.
npm install to install all the packages needed.
Instead of installing an extension from the marketplace, we can use a VSIX file to package the project.
To package as a VSIX file, use the @vscode/vsce module, a VS Code extension manager provided by Microsoft.
#npm npm install -g @vscode/vsce
Run vsce package
Run the following code on the terminal.
This will take a while, depending on the size of the project. When it's done, you'll find a newly created vsix file.
Install the extension from the VSIX file
Then the only thing left to do is to install the extension via
Install from VSIX... in the extension "..." menu.
Do not update the extension carelessly, because it updates the latest officially released version. In this case, reinstall your development version from the VSIX file.