Hi there! We're thrilled that you'd like to contribute to this project.
Your help is essential for keeping it great.
- Fork and clone the repository
- Configure and install the dependencies:
npm install
- Compile code:
npm run compile
- Make sure the tests pass on your machine:
npm run test
- Create your feature branch:
git checkout -b my-new-feature
- Make your change, add tests, and make sure the tests still pass
- Add your changes:
git add .
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
- Pat yourself on the back and wait for your pull request to be reviewed and merged.
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
- Write and update tests.
- Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
- Write a good commit message.
Each commit message consists of a header, a body and a footer. The header has a special format that includes a type, a scope and a subject:
<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>
The header is mandatory and the scope of the header is optional.
Any line of the commit message cannot be longer 100 characters! This allows the message to be easier to read on GitHub as well as in various git tools.
The footer should contain a closing reference to an issue if any.
If the commit reverts a previous commit it should begin with revert:
, followed by the SHA of the reverted commit.
e.g: revert: commit <SHA>.
Must be one of the following:
- build: Changes that affect the build system or external dependencies
- chore: Maintain
- docs: Documentation only changes
- feat: A new feature
- fix: A bug fix
- perf: A code change that improves performance
- refactor: A code change that neither fixes a bug nor adds a feature
- style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
- test: Adding missing tests or correcting existing tests
To build a standalone local vsix
file you can install into VSCode, perform the following:
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
Note: The above instructions were found on https://stackoverflow.com/a/54409592/5889983