Skip to content

Latest commit

 

History

History
77 lines (58 loc) · 1.89 KB

CONTRIBUTING.md

File metadata and controls

77 lines (58 loc) · 1.89 KB

Contributing to the Materialize Extension for Visual Studio Code

Developing the Extension

Thank you for your interest in the Materialize extension for Visual Studio Code! Contributions of many kinds are encouraged and most welcome.

If you have questions, please create a GitHub issue.

Requirements

  • NPM and NodeJS
  • Visual Studio Code
  • Docker

Building the Extension

  1. Clone the repository:
git clone https://github.com/MaterializeInc/vscode-extension.git
  1. Install the dependencies:
npm install
  1. Build the extension:
npm run esbuild

Running and debugging the extension

The extension runs in a parallel instance of Visual Studio Code. To start it, press F5 or click the play button located in the Run and Debug section:

Screenshot 2023-08-01 at 10 58 05

Testing the Extension

Running the tests

  1. Run Materialize in docker:
docker run -v mzdata:/mzdata -p 6875:6875 -p 6876:6876 materialize/materialized
  1. Run the VSCode tests:
npm run test

Cutting a release

A GitHub Action will release the new version to the Visual Studio Marketplace.

Follow these instructions to trigger the action:

  1. Update the package.json to the new version.
  2. Write the new changes to the CHANGELOG.md.
  3. Run the following commands
    VERSION=vX.Y.Z
    git branch -D release
    git checkout -b release
    git commit -am "release $VERSION"
    git push --set-upstream origin release
    gh pr create
  4. Merge the pull request and push the tag by running the following commands:
    git checkout main
    git pull
    git checkout MERGED-SHA
    git tag -am $VERSION $VERSION
    git push --tags
    gh release create $VERSION