Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 1.05 KB

CONTRIBUTING.md

File metadata and controls

47 lines (37 loc) · 1.05 KB

Contributing

Contributions are welcome! Please use the discussions tab before opening a PR.

Running the extension locally

Install mise (if you don't have it already): https://mise.jdx.dev/getting-started.html

Install the dependencies:

mise install

Run the build and watch for changes:

mise run dev

This will open a new VS Code window with the extension running.

On code change:

  • the extension code (in the dist folder) will be updated automatically.
  • refresh the VS Code window to see the changes (Developer: Reload Window).

Debugging

  • With VSCode, use the Run Extension launch configuration
  • With IntelliJ IDEA, use the Debug extension run configuration

Tests

mise run test

Lint

mise run lint
mise run lint-fix # to fix lint issues
mise run check # lint-fix + tests

If you want to run the linter on every commit, you can create a pre-commit hook:

mise generate git-pre-commit --write --task=check

Other commands

mise tasks # list all available tasks