Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.92 KB

dev.md

File metadata and controls

34 lines (24 loc) · 1.92 KB

Development

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.

overview

Building

  • Make sure you have an up to date installation of npm and node.js. For example npm version 8.1.3 and node.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.

Testing

  • Make sure you have executed the above build steps
  • Run npm run test. If you want to see incremental output, run this in the vscode-lean4 folder.
  • See the test README for more information.

Debugging

  • 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.

Packaging

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....