Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
We accept pull requests for bug fixes and features where we've discussed the approach in an issue and given the go-ahead for a community member to work on it. We'd also love to hear about ideas for new features as issues.
We track issues on our project board here.
Please do:
- Check existing issues to verify that the bug or feature request has not already been submitted.
- Open an issue if things aren't working as expected.
- Open an issue to propose a significant change.
- Open a pull request to fix a bug.
- Open a pull request to fix documentation about a command.
Please avoid:
- Opening pull requests for issues marked
needs-design
,needs-investigation
, orblocked
.
Contributions to this project are released to the public under the project's open source license.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
These are one time installations required to be able to test your changes locally as part of the pull request (PR) submission process.
- Install Node.js for Mac
- Install VS Code for Mac
- Install Parallels Desktop for Mac
- Install Hashicorp Packer for Mac
- Install Vagrant for Mac
- Install the dependencies. From the repository root run:
npm i
The extension is written in TypeScript and built using webpack. The dev loop steps and commands have been tested on both Mac and Windows. We also have webview's that are written with Alpine.js and Tailwind CSS.
- Go to the Debug tab.
- Hit
Watch and Launch Extension
if you want to work on the main VS Code extension like the left sidebar and the UI for the extension.
- Hit
- Hit the play button (this will automatically run
npm watch
for you and monitor for changes) which will open a local version of the extension using the extension development host. - Make changes.
- To get new changes, hit the refresh button in the debugger window to reload the extension in the development host. If you don't see the changes, wait long enough for the
npm watch
terminal to rebuild and then try hitting the play button again.
For the commands below make sure that you are in the parallels-desktop-extension
directory of your local repo first.
Build changes (one time):
npm run build
Or to watch for changes and automatically rebuild every time on save:
npm run watch
npm test
npm run lint
Run linter and fix errors as possible:
npm run lint-fix
Check formatting with prettier:
npm run format-check
Run prettier and automatically format:
npm run format
npm run package
"Run Web Extension in VS Code" - run the web version of the extension
- Fork and clone the repository
- Configure and install the dependencies (in the repository root folder):
npm i
- Create a new branch:
git checkout -b my-branch-name
- Make your change, add tests, and make sure the tests and linter still pass
- Push to your fork and submit a pull request
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
- Format your code with prettier.
- Write 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.