Contributions are essential for keeping this extension great. We try to keep it as easy as possible to contribute changes and we are open to suggestions for making it even easier. There are only a few guidelines that we need contributors to follow.
- latest Visual Studio Code
- Node.js v20.0.0 or higher
- optional: gh to manage pull requests.
-
Fork and clone this repository
-
Change to the directory:
$ cd vscode-granite
- Install the NPM dependencies:
$ npm run install:ci
This will install the dependencies for the extension and its webview(s)
-
To run the extension, open the Debugging tab in VSCode.
-
Select and run 'Launch Extension' at the top left:
You can package the extension as a *.vsix archive:
$ npx @vscode/vsce package
It will generate a vscode-granite-<version>
.vsix
You can then install it in VS Code by following these instructions.
Try to follow this workflow to contribute changes:
- Fork the repository and clone your fork
- Create a new branch
- Make your changes in that branch
- Commit and sign your commit (with the
-s
flag) - Push your branch up to your fork on GitHub
- Open a pull request with a detailed description of your changes
With regards to git history, please:
- keep the git history linear, no merge commits.
- ensure PRs are squashed before merging, to keep changes atomic.
By contributing to this project you agree to the Developer Certificate of Origin (DCO). This document was created by the Linux Kernel community and is a simple statement that you, as a contributor, have the legal right to make the contribution. See the DCO file for details.