This is the repository for the Starcoin IDE vscode plugin.
This extension wraps around Starcoin's mpm
and provides quick access to the folllowing commands:
- Starcoin: Build -
mpm package build
- runs build in the current project - Starcoin: Run Unit Test -
mpm package test
- runs unit tests in the current project - Starcoin: Run Integration Test -
mpm integration-test
- runs integration tests in the current project - Starcoin: Update Integration Test Baseline -
mpm integration-test --ub
- update integration test baseline - Starcoin: Check Compatibility -
mpm check-compatibility
- Check compatibility of the current project's modules comparing with remote chain state - Starcoin: Release -
mpm release
- release the package torelease/
directories - Starcoin: Open Deploy Page - Open the page to deploy the release blob
To run any of these commands, use VSCode's command palette, or right-click the Move.toml and select the command Run from the context menu that appears, or right-click the Move file in the source folder to run unit tests, or right-click the Move file in the integration tests folder to run integration tests or update integration test baseline.
Users can create a .starcoin-ide/config file in the Move project root directory to customize the options of the mpm subcommand
[mpm.package.build]
OPTIONS=["--doc", "--abi", "--force"]
[mpm.integration-test]
OPTIONS=["--current-as-stdlib"]
This extension uses vscode-move-syntax extension as a dependency for syntax highlighting.
This extension uses move-analyzer crate as Move Language Server.
The following LSP are now supported:
- Completion
- Hover
- GotoDefinition
- GotoTypeDefinition
- References
- DocumentSymbol
You can give feedback here.
We welcome your contributions and thank you for working to improve the Starcoin contract development experience in VS Code. If you would like to help work on the Starcoin IDE, please see our contribution guide. It explains how to build and run the extension locally, and describes the architecture of the of starcoin IDE.