npm install
To build and install the current version of the extension, first ensure that you've followed the steps to install the dependencies for the Malloy Repo. Note: You will need to re-run the below any time you pull in new changes. Then run:
npm run package-extension
Next, in VSCode EITHER:
- Run the "Extensions: Install from VSIX" command (CTRL/CMD + SHIFT + P opens the command interface), then select
dist/malloy-vscode-x.x.x.vsix
OR
- Open the folder root directory in VSCode, right click on
dist/malloy-vscode-x.x.x.vsix
and select "Install Extension VSIX".
- Open the top-level
malloy-vscode-extension
directory in VSCode - Select the "Run and Debug" panel in the left bar.
- Click the green arrow "Run" button, with the "Run Extension" profile selected.
Optional: To additionally debug the language server, run the "Attach to Language Server" launch profile from the "Run and Debug" panel.
- One time, in your local Malloy repository, run
npm link -ws
. That will make your development packages locally available for development. - Each time you make changes, you'll need to run
npm run build
from themalloy
directory - In your VS Code extension repository, run
npm run malloy-link
to pull in the newly built local Malloy packages.
- If you make changes to Malloy that are required by the extension, merge those into main and that will trigger an automatic developer release of Malloy.
- Once that release completes, run
npm run malloy-update
to update dependencies to that release. This will break the link to your local version of Malloy, so if you want to resume local development, re-runnpm run malloy-link
- To manually unlink without updating, you may run
npm run malloy-unlink