To view the message exchange trace in VSCode,
-
Menu View > Command Palette
-
Search for:
Preferences: Open user settings (JSON) -
Add a comma and the following line if you want to see message exchange between the server and VSCode:
"dafny-vscode.trace.server": "verbose"
After reloading VSCode and loading a Dafny file, you can now navigate to the View > Output, and select "Dafny Language Server" You only need to do this step once.
- Run
./publish_process.js(with Node installed)- Choose to bump the patch, minor or major version as asked.
- Fix the ChangeLog that is automatically populated and opened for you.
- If there is a new release of Dafny, it will suggest to bump the Dafny version. Then it creates the branch, pushes it and give you a link for the PR.
- Create the PR, have it reviewed and merged (adding more commits is fine)
- Relaunch the script. It will detect the PR merge;
- Confirm the publication of the new version.
- Look for all the recent changes since the last version https://github.com/dafny-lang/ide-vscode/commits/master
and write a summary of each relevant commit in
CHANGELOG.md - Update
package.json
- Upgrade the version number of the extension in
package.json(line 5) (let's assume it's A.B.C) - [If Dafny changed] Search for
"dafny.preferredVersion":, and add the most recent Dafny version number to the head of the list (let's assume it's X.Y.Z)
- [If Dafny changed] Update
src/constants.ts
- Change
LanguageServerConstants.LatestVersion = "X.Y.Z"for the same version number that you put.
- Commit your changes in a branch named
release-A.B.C Your commit message could bechore: Release vA.B.Coptionally addingwith support for Dafny X.Y.Z` - Push this branch on the server, have it merged (after necessary approval)
- Pull the most recent master branch of the extension.
- Add the tag with the command
git tag vA.B.Cand push it withgit push origin vA.B.C
This last step will trigger the workflow, which will automatically release the new version.