Validate Composer model files that define the structure of your business network in terms of Assets, Participants and Transactions.
The extension parses Composer model (.cto) files and reports any validation errors. It is currently in beta; please raise any problems you find as an issue.
Generate the installable VSIX file:
git clone https://github.com/hyperledger/composer-vscode-plugin.git
cd composer-vscode-plugin/server
npm install
npm run compile:server
cd ../client
npm install
npm run package:vsix
- Launch VSCode
- View > Extensions
- Press the ... and select "Install from VSIX"
- Browse to the VSIX file
- Install and restart VSCode
- Open a .cto file
Developers no longer need a manual build, once you have pulled a request from your private Github repository. The build will be automatically performed by Travis. A successful build will create an installable VSIX file on the build machine. The public release version number is defined in the Client package.json file.
Below are steps for publishing a release.
- Go to https://github.com/hyperledger/composer-vscode-plugin
- Click Releases tab
- Click Draft a new release on the right
- Type a Tag version in the Tag version field. e.g. v0.5.7.1
- Type a Release title in the Release title field e.g v0.5.7.1
- Provide a short description of this release under the Write tab
- Uncheck the box for This is a pre-release at the end of this page
- Click Publish release button to publish the VSIX file to the VSCode Marketplace
- Go to the VSCode Marketplace: https://marketplace.visualstudio.com/
- Type Composer in the search field and hit return key or search button
- This will bring you to https://marketplace.visualstudio.com/search?term=Composer&target=VSCode&category=All%20categories&sortBy=Relevance
- Open Visual Studio Code in your desktop
- Open the Extensions by View-->Extensions or Ctrl(cmd)+Shift+x
- Search for Composer
- The new published Hyperledger Composer 0.7.1 is showing on the list
- Click Install button to install it
- Update button will be shown if you have already installed the same plugin before.