Skip to content

Latest commit

 

History

History
112 lines (70 loc) · 3.57 KB

CONTRIBUTING.md

File metadata and controls

112 lines (70 loc) · 3.57 KB

Contributing

First off, thanks for taking the time to contribute! 🚀🎉👍

When contributing to this project, please first discuss the changes you wish to make via an issue before creating a pull request.

Please note that when participating or interacting with this project you must follow the Galaxy Project Code of Conduct.

Your First Code Contribution

Unsure where to begin contributing? You can start by looking through the good first issue or help wanted issues.

You can also try to fix a paper-cut which are trivially fixable usability bugs or easy enhancements.

When you decide what to contribute follow the steps below and then open a Pull Request to this repository.

Happy coding! 🎉

Prerequisites

Getting the code

  1. Fork this repo on Github
  2. Clone your fork locally:
    git clone https://github.com/<your_github_name>/galaxy-workflows-vscode.git

Dependencies

From a terminal, where you have cloned the repository, execute the following command to install the required dependencies:

pnpm install

Build

From a terminal, where you have cloned the repository, execute the following command to re-build the project from scratch:

pnpm run compile

Code Style

Once you are happy with your changes you can lint the code using:

pnpm run lint

or fix the formatting style using:

pnpm run format

If you have installed the recommended extensions in extensions.json the code style will be automatically enforced every time you save a file, so you probably won't need to run pnpm run format.

Install the extension locally

To install the extension into VS Code as a regular (non-debug) extension:

  1. Install the packaging tool (once):

    pnpm add -g @vscode/vsce
  2. Build the .vsix package:

    vsce package
  3. Install it:

    code --install-extension galaxy-workflows-*.vsix

    Or via the Extensions panel: click ... → Install from VSIX... and select the generated file.

Launch/Debug the extension locally

Run the Debug Extension + Server configuration from the Run and Debug action bar (or press F5).

This will launch the extension in a new VSCode instance and also attach the debugger to the Workflow Language Server so you can add breakpoints and debug both client and server projects.

Test the extension on vscode.dev

After you get your extension working locally, follow the instructions here to try it in Web mode.

Running the tests

You can run all the unit tests with:

pnpm test

Alternatively, you can choose to run only the server or the client tests using pnpm run test-server or pnpm run test-client respectively.

The integration or end to end (e2e) tests will download (the first time) and launch a testing version of VSCode and then run the tests on it. You can run these tests with:

pnpm run test:e2e