Thanks for taking the time to contribute!
Note: At the moment, this guide only explains how to make changes to the code.
git clone https://github.com/pickoba/satysfi-workshop.git
cd satysfi-workshop
npm ci
code .
It is recommended to use npm ci
instead of npm install
to avoid unintentional rewriting of package-lock.json
.
When you open the workspace for the first time, VS Code will prompt you to install the following extensions:
These are necessary for debugging, linting and formatting, so please install them.
Some of the features (math hover preview) of this extension depend on tree-sitter parsers. To build the parsers, run
npm run build:tree-sitter
Note: Building parsers on Windows is not supported at the moment. Use WSL instead.
You can debug the extension from the Run view:
- Open the Run view (ctrl/cmd + shift + D)
- Select "Extension" using the dropdown
- Press F5 to start debugging (The program will be compiled automatically)
Update: With the update of the @vscode/test-electron
package, the following restrictions seem to be gone.
Because of VS Code's limitation, you cannot run the tests on CLI if you are using VS Code stable (see here). I recommend running the tests from the debug launch configuration from within VS Code itself:
- Open the Run view (ctrl/cmd + shift + D)
- Select "Extension Tests" using the dropdown
- Press F5 to run the tests
The results of the tests can be checked from the DEBUG CONSOLE panel.
This project uses ESLint for linting and Prettier for formatting. Run
npm run lint
to check and
npm run fix
to fix the problems.