Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/release-vsc-ext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,20 @@ jobs:
# both macOS, and Windows, whose ARM64 VSIX carries the x64 binaries —
# and not on Linux ARM64, which runs cells with an `hql` on PATH or
# named in the setting (issue 0111).
- name: Check every VSIX carries its d2, and its hql where HQL ships one
#
# `hmd-lsp`, the language server, is in the toolchain for every platform
# since 0.6.0, so every VSIX must carry it (issue 0117). Without it the
# extension still works, and says once that the server is absent: a
# build that lost the binary would look like a working release.
- name: Check every VSIX carries its d2 and hmd-lsp, and its hql where HQL ships one
run: |
set -euo pipefail
for vsix in dist-vsix/*.vsix; do
case "$vsix" in
*win32*) expected="extension/toolchain/bin/d2.exe extension/toolchain/bin/hql.exe" ;;
*win32*) expected="extension/toolchain/bin/d2.exe extension/toolchain/bin/hmd-lsp.exe extension/toolchain/bin/hql.exe" ;;
*linux-x64*|*darwin-x64*|*darwin-arm64*)
expected="extension/toolchain/bin/d2 extension/toolchain/bin/hql" ;;
*) expected="extension/toolchain/bin/d2" ;;
expected="extension/toolchain/bin/d2 extension/toolchain/bin/hmd-lsp extension/toolchain/bin/hql" ;;
*) expected="extension/toolchain/bin/d2 extension/toolchain/bin/hmd-lsp" ;;
esac
for file in $expected; do
if ! unzip -l "$vsix" | grep -q "$file"; then
Expand Down
2 changes: 1 addition & 1 deletion doc/status/index.hmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ thing you care about; this page is the one-line version of each.
| [**hmd**](hmd.hmd) | The canonical implementation: the CLI, the core, the site plugin, the package | Complete and released; everything the format specifies is implemented | Property-based tests of the resolver, over generated vaults |
| [**@hypermarkdown/core**](ts-core.hmd) | The format in TypeScript, held to the canonical implementation by a shared corpus | `0.1.1` on npm; complete except the card publication *model*, and byte-identical to the canonical linter on everything it implements | Port the publication model, once the specification says which proposal owns it here |
| [**hypermarkdown (Rust)**](rs-core.hmd) | The resolver as a Rust library crate, held to the canonical implementation by the shared corpus | Written, passing every corpus case, and published to crates.io at 0.1.0 | A release workflow, and HQL taking it as its resolver |
| [**hmd-lsp**](lsp.hmd) | The language server, as a Rust program on the resolver crate: tokens, definition, hover, and three diagnostics | `0.1.0` released: the program for five platforms on GitHub, and `hypermarkdown-lsp` on crates.io | The toolchain carrying the binary, then going to a heading |
| [**hmd-lsp**](lsp.hmd) | The language server, as a Rust program on the resolver crate: tokens, definition, hover, and three diagnostics | `0.1.0` released: the program for five platforms on GitHub, and `hypermarkdown-lsp` on crates.io | Going to the heading or the block a link names |
| [**hmd-semantics**](semantics.hmd) | The builder of a vault's semantic index: card text embedded into an SQLite file in the vault's `.hmd/` | Moved here from HQL and passing its tests; builds the card itself at one depth, and not published | The two summary depths and the schema version that carries them |
| [**VS Code extension**](vsc-ext.hmd) | The hmd preview, diagnostics, and the graph, inside the editor | `0.3.0` live on both galleries, and the preview label is off | Automate the by-hand release checks |
| [**website**](pages.hmd) | <https://hypermarkdown.org> — the book, the prose, the branding, the deploy | Live and building clean | The roadmap page, and the stale state claims the audit for it turned up |
Expand Down
13 changes: 10 additions & 3 deletions doc/status/lsp.hmd
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ thread, and 4 that run the built program.
The program is on the GitHub release `lsp-v0.1.0` for Linux and macOS on
x86-64 and ARM64 and for Windows on x86-64, and the package is
`hypermarkdown-lsp` on crates.io. The VS Code extension is a client of it,
written and not yet released. The pinned toolchain does not carry the program
yet, so a user downloads it or builds it with `cargo install
written and not yet released. The pinned toolchain, 0.6.0, carries the program for
all five platforms, so the next release of the extension bundles it. Until
that release a user downloads the program or builds it with `cargo install
hypermarkdown-lsp`, and puts it on `PATH`.

The server replaces the Python language server that was decided earlier and
Expand All @@ -42,7 +43,6 @@ linter.

| Status | Work | Notes | References |
| --- | --- | --- | --- |
| todo | **The toolchain carries the binary** beside `d2` and `hql`, so the extension bundles it and a user installs nothing. The first release is cut, so nothing blocks this; the work is in the toolchain repository | Decide first whether the toolchain repository builds the binary or takes it from this repository's release | [[hmd-0033#distribution]] |
| todo | **Go to a heading or a block.** A reference with a fragment leads to the top of the card today. It should lead to the heading or the block the fragment names | The resolver crate reads no heading and no block anchor. The rule that turns a heading's text into the name a fragment matches is the language's, so the code belongs in the crate | [[hmd-0033#go-to-definition]] |
| todo | **Tokens for block anchors and frontmatter.** A trailing `^block-id` and the frontmatter block get no token | The crate reports neither position today | [[hmd-0033#semantic-tokens]] |
| todo | **Completion** of card names, headings, and block anchors after `[[` | Needs the list of names a card can write for another card, which is the resolver's knowledge and belongs in the crate | [[hmd-0033#deployment-activation]] |
Expand Down Expand Up @@ -89,6 +89,11 @@ Nothing known.
vault configurations.
- **Positions converted** between code points and UTF-16 units, with a
byte-order mark and all three line endings [[hmd-0033#positions]].
- **The toolchain carries the program** — `hypermarkdown-toolchain` 0.6.0
holds `bin/hmd-lsp` for all five platforms, pinned from the `lsp-v0.1.0`
release, and its release check runs a protocol session against the server
on each platform. This repository pins 0.6.0, and the extension's release
workflow refuses a VSIX without the program [[hmd-0033#distribution]].
- **The first release, 0.1.0** — the tag `lsp-v0.1.0` on 2026-11-25: five
archives and `SHA256SUMS` on the GitHub release, built by the workflow on
its first tagged run, and `hypermarkdown-lsp` 0.1.0 on crates.io, published
Expand Down Expand Up @@ -125,6 +130,8 @@ cargo test --locked

## Changelog

- 2026-11-25: the toolchain row becomes a Done row: toolchain 0.6.0 carries
the program and is pinned here.
- 2026-11-25: the release workflow publishes the package to crates.io; the
row for it becomes a Done row.
- 2026-11-25: 0.1.0 is released. The row for cutting it becomes a Done row,
Expand Down
3 changes: 1 addition & 2 deletions doc/status/open.hmd
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ the board, in the order this view lists them.
| state | rows |
| ------- | ---- |
| doing | 2 |
| todo | 32 |
| todo | 31 |
| blocked | 4 |
| backlog | 15 |
| parked | 3 |
Expand Down Expand Up @@ -110,7 +110,6 @@ Every open row, `doing` first, then `todo`, `blocked`, `backlog` and
| todo | Validate the grammar, a release requirement for 0.1. | [lang](lang.hmd) |
| todo | Review lexical compatibility with CommonMark. | [lang](lang.hmd) |
| todo | Accept Mermaid as a diagram language on par with D2. | [lang](lang.hmd) |
| todo | The toolchain carries the binary | [lsp](lsp.hmd) |
| todo | Go to a heading or a block. | [lsp](lsp.hmd) |
| todo | Tokens for block anchors and frontmatter. | [lsp](lsp.hmd) |
| todo | Completion | [lsp](lsp.hmd) |
Expand Down
5 changes: 3 additions & 2 deletions scripts/toolchain.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ if (manifest.toolchain !== pin.version) {
fail(`archive manifest says toolchain ${manifest.toolchain}, pin says ${pin.version}`);
}

// Every tool the manifest lists must be where it says. `hql` is listed only
// for the platforms HQL publishes, so its absence elsewhere is expected.
// Every tool the manifest lists must be where it says. `d2` and `hmd-lsp` are
// listed for every platform. `hql` is listed only for the platforms HQL
// publishes, so its absence elsewhere is expected.
for (const [tool, entry] of Object.entries(manifest.tools ?? {})) {
if (!existsSync(join(dest, entry.path))) fail(`${archive.name} lists ${tool} at ${entry.path}, which it does not contain`);
}
Expand Down
24 changes: 12 additions & 12 deletions toolchain.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"$comment": "The one pin for every native binary HyperMarkDown runs — d2, and hql where HQL publishes the platform. See doc/issues/0107 and 0111. Bumping d2 or hql happens in the toolchain repository; here only `version` and the digests move, together, in one commit.",
"$comment": "The one pin for every native binary HyperMarkDown runs — d2, hmd-lsp, and hql where HQL publishes the platform. See doc/issues/0107, 0111 and 0117. Bumping d2, hql or hmd-lsp happens in the toolchain repository; here only `version` and the digests move, together, in one commit.",
"repo": "ewiger/hypermarkdown-toolchain",
"version": "0.5.3",
"version": "0.6.0",
"archives": {
"linux-x86_64": {
"name": "hypermarkdown-toolchain-0.5.3-linux-x86_64.tar.gz",
"sha256": "dfeb1d140130c4c7bdbfd8f7a088a2f37ee52b24b1bdf5a4039b8a16b49ef1fd"
"name": "hypermarkdown-toolchain-0.6.0-linux-x86_64.tar.gz",
"sha256": "6ee19ddc6b94c653b0df6680dcf18b75a1f3948af74f9cd04ac623b9fc5f4c58"
},
"linux-arm64": {
"name": "hypermarkdown-toolchain-0.5.3-linux-arm64.tar.gz",
"sha256": "b9910774eba8ad8a1e0866aaa9deae1444376cc22525f4eb459f797725db0285"
"name": "hypermarkdown-toolchain-0.6.0-linux-arm64.tar.gz",
"sha256": "130633611559839f36580396be00b368d27d8414560259e229426748a9c0e8f1"
},
"macos-x86_64": {
"name": "hypermarkdown-toolchain-0.5.3-macos-x86_64.tar.gz",
"sha256": "b581e014b84bb30008f5a8faef3ae330abd9b46ea244ffe5089c705ccbf8bab2"
"name": "hypermarkdown-toolchain-0.6.0-macos-x86_64.tar.gz",
"sha256": "1e6b8e51d1205d207148f831f7a434189b5bc71f320e591737fe92104ca1b5a5"
},
"macos-arm64": {
"name": "hypermarkdown-toolchain-0.5.3-macos-arm64.tar.gz",
"sha256": "fa157213f0bf50049a5c2e73ac3f59e3fa39e2891e1cc0defa4702f70eabe988"
"name": "hypermarkdown-toolchain-0.6.0-macos-arm64.tar.gz",
"sha256": "86890780b6f41ed03fc1128fb18c5d07b5111aacd5354a03b41b15cb4d8124cf"
},
"windows-x86_64": {
"name": "hypermarkdown-toolchain-0.5.3-windows-x86_64.zip",
"sha256": "56a5c9488c819a0b36480303a534556f7258c6dee7afa24e8942f2e5a7127267"
"name": "hypermarkdown-toolchain-0.6.0-windows-x86_64.zip",
"sha256": "877ffc1dd34f6eaa5a26502df38390e30edbfa8957f9b5ff7a58b9475f7d0bcc"
}
}
}
Loading