This page is designed for software developers who are helping to develop the Lean 4 VS Code extension.
The repository contains NPM packages implementing editor integration for the Lean 4 programming language. The VS Code
extension proper is in vscode-lean4
, while lean4-infoview
implements the
information display. The API glue code between them is in lean4-infoview-api
. We build
the packages in tandem using NPM workspaces.
- Make sure you have an up to date installation of
npm
andnode.js
. For examplenpm
version 8.1.3 andnode.js
version v16.13.0. - Run
npm install
in your workspace root folder to set up the project's dependencies. - Run
npm run build
. This compiles the extension.
- Make sure you have executed the above build steps
- Run
npm run test
. If you want to see incremental output, run this in thevscode-lean4
folder. - See the test README for more information.
- Complete the 'Building' instructions above.
- Open VS Code on this folder.
- Press Ctrl+Shift+B to compile the extension. (Cmd+Shift+B on macos.) This step is needed for a working development setup.
- Press F5 to launch the extension in the VS Code debugger.
To debug the tests, use the launch configuration named Extension Tests - SuiteName
.
To publish the extension on the VS Code marketplace you should run the ./release.sh
script. See publishing extensions for more information.
You can build a local .vsix for testing using npm run package
in the vscode-lean4/
subdirectory. This gives you a .vsix which you can install using the VS Code command Extensions: Install from VSIX...
.