Thank you for your interest in contributing to GistPad!
The goal of this documentation is to provide a high-level overview of how you can build and debug the project.
Ensure you have node installed.
Clone the repo, run npm install
and open a development instance of Code.
git clone https://github.com/vsls-contrib/gistpad.git
cd gistpad
npm install
code .
You can now go to the Debug viewlet (Ctrl+Shift+D
) and select Run Extension (watch)
then hit run (F5
).
This will open a new VS Code window which will have the title [Extension Development Host]
. In this window, open the GistPad tab from the sidebar.
In the original VS Code window, you can now add breakpoints which will be hit when you use any of the the plugin's features in the second window.
After making changes to the extension, you might want to test it end to end instead of running it in debug mode. To do this, you can sideload the extension. This can be done by preparing the extension and loading it directly.
npm install -g vsce
to make sure you have vsce installed globallygit clone https://github.com/vsls-contrib/gistpad.git
to clone the repo if you haven't already done socd gistpad
npm install
to install dependencies if you haven't already done sovsce package
to build the package. This will generate a file with extensionvsix
- Run the command
Extensions: Install from VSIX...
, choose the vsix file generated in the previous step
For more information on using GistPad extension, follow the instructions for getting started.
This documentation is adapted from the Microsoft / vscode-go, available at https://github.com/Microsoft/vscode-go/wiki/Building,-Debugging-and-Sideloading-the-extension-in-Visual-Studio-Code.