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
2 changes: 1 addition & 1 deletion DEVELOP.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Four things version independently, and each has exactly one literal:
The Rust crate under `tools/hmd-rs-core/` declares a version of its own as well,
in [`Cargo.toml`](tools/hmd-rs-core/Cargo.toml), with
[its changelog](tools/hmd-rs-core/CHANGELOG.md). It is published to crates.io as
`hypermarkdown`, by hand: no workflow releases it yet.
`hypermarkdown`, by `release-rs-core.yml` on an `rs-core-vX.Y.Z` tag.

The language server under `tools/hmd-lsp/` declares one too, in
[`Cargo.toml`](tools/hmd-lsp/Cargo.toml), with
Expand Down
4 changes: 2 additions & 2 deletions doc/issues/0118-colour-the-listings-in-a-fenced-block.hmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**Column**: todo
**Opened**: 2026-11-25
**Related**: [the extension's tracker](../status/vsc-ext.hmd), [the language server card](0117-a-language-server-in-rust.hmd), [HMD-0021](../proposals/HMD-0021/index.hmd), [HMD-0026](../proposals/HMD-0026/index.hmd)
**Related**: [the extension's tracker](../status/vsc-ext.hmd), [the language server card](archive/0117-a-language-server-in-rust.hmd), [HMD-0021](../proposals/HMD-0021/index.hmd), [HMD-0026](../proposals/HMD-0026/index.hmd)

## What

Expand All @@ -25,7 +25,7 @@ is coloured in two of the three places today:

This card is about the colours of listings and of the card's own syntax in
the grammar. The colours that say whether a link resolves come from the
language server, which is [another card](0117-a-language-server-in-rust.hmd).
language server, which is [another card](archive/0117-a-language-server-in-rust.hmd).

## The three parts

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# 0117 — A language server, written in Rust

**Column**: doing
**Column**: done — closed 2026-11-25
**Opened**: 2026-11-25
**Related**: [HMD-0033](../proposals/HMD-0033/index.hmd), [HMD-0024](../proposals/HMD-0024/index.hmd), [HMD-0027](../proposals/HMD-0027/index.hmd), [the server's tracker](../status/lsp.hmd), [the Rust crate's tracker](../status/rs-core.hmd), [the extension's tracker](../status/vsc-ext.hmd), [the toolchain card](archive/0107-toolchain-repository-for-native-binaries.hmd)
**Related**: [HMD-0033](../../proposals/HMD-0033/index.hmd), [HMD-0024](../../proposals/HMD-0024/index.hmd), [HMD-0027](../../proposals/HMD-0027/index.hmd), [the server's tracker](../../status/lsp.hmd), [the Rust crate's tracker](../../status/rs-core.hmd), [the extension's tracker](../../status/vsc-ext.hmd), [the toolchain card](0107-toolchain-repository-for-native-binaries.hmd)

## What

Expand Down Expand Up @@ -40,7 +40,7 @@ server do both.

## This reverses a decision

[HMD-0024](../proposals/HMD-0024/index.hmd) decided that the language server
[HMD-0024](../../proposals/HMD-0024/index.hmd) decided that the language server
MUST be Python on `pygls`, inside `tools/hmd/`. Its reason was that a server
written anywhere else would be a third place where resolution behaviour lives.
That third place now exists for another reason: the Rust crate, which HQL
Expand Down Expand Up @@ -81,3 +81,13 @@ rules are ported to Rust or the server learns to call `hmd lint`.
working when the binary is absent.
- The release path for the binary is decided and written down: a tag prefix,
the platforms, and how the binary reaches the toolchain.

## Closed

Released on 2026-11-25 as `hmd-lsp` 0.1.0. The proposal is
[HMD-0033](../../proposals/HMD-0033/index.hmd). The server answers the first
four requests of the list above, and the extension is its client. The program
is on the GitHub release for five platforms, and the package is
`hypermarkdown-lsp` on crates.io, because the name `hmd-lsp` there belongs to
an unrelated project. Completion, rename, and the toolchain carrying the
program are rows in [the server's tracker](../../status/lsp.hmd).
6 changes: 3 additions & 3 deletions doc/issues/kanban.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ board:
- id: "0115"
title: "Mermaid diagrams, on par with D2"
file: 0115-mermaid-diagrams-on-par-with-d2.hmd
doing:
doing: []
done:
- id: "0117"
title: "A language server, written in Rust"
file: 0117-a-language-server-in-rust.hmd
done:
file: "archive/0117-a-language-server-in-rust.hmd"
- id: "0116"
title: "Vault not found: the extension should say so and offer to initialize one"
file: "archive/0116-initialize-a-vault-from-the-editor.hmd"
Expand Down
2 changes: 1 addition & 1 deletion doc/proposals/HMD-0033/index.hmd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ nav:

**Status**: drafted
**Created**: 2026-11-25
**Source**: [the board card that opened the work](../../issues/0117-a-language-server-in-rust.hmd)
**Source**: [the board card that opened the work](../../issues/archive/0117-a-language-server-in-rust.hmd)

## Abstract

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 | Written and tested, with no release and no editor using it yet | The first release, and the toolchain carrying the binary |
| [**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-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
31 changes: 16 additions & 15 deletions doc/status/kanban.hmd
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ then the archive.
| ------- | ------ |
| backlog | 9 |
| todo | 11 |
| doing | 1 |
| doing | 0 |
| done | 0 |
| archive | 26 |
| archive | 27 |
<!-- /hql:output -->

## Board
Expand Down Expand Up @@ -91,19 +91,19 @@ range(0, depth)
| format(as = Markdown)
```
<!-- hql:output hash=fc9739b6231c status=ok -->
| backlog | todo | doing | done |
| ------------------------------------------------------------ | -------------------------------------------------------------------------------- | --------------------------------------- | ---- |
| 0106 There is no way to search the wiki from the preview | 0118 Listings in a fenced block are not coloured in the preview | 0117 A language server, written in Rust | |
| 0102 Diagrams render on a white surface in every theme | 0115 Mermaid diagrams, on par with D2 | | |
| 0101 The live-editing behaviours are only checked by hand | 0114 The cover's notebook screenshot is of another vault | | |
| 0026 Check frontmatter with an HQL-like data type system | 0113 A relative image in a card is not shown in the preview | | |
| 0025 Extend the shared test coverage | 0105 The preview freezes on the card it was opened over | | |
| 0024 Define symbolic link semantics | 0100 A `???` callout snaps shut on every re-render | | |
| 0021 Specify the vault directory and the standard's boundary | 0019 Review lexical compatibility with CommonMark | | |
| 0008 A public card linking to a private one needs a policy | 0015 CommonMark's own examples as a test dataset | | |
| 0007 Conversion should name its output target | 0013 The roadmap is behind the releases, and it is the one page that states them | | |
| | 0012 An embedded card's Markdown links resolve from the host page | | |
| | 0011 Vault and namespace: the declared design, HMD, and HQL have drifted apart | | |
| backlog | todo | doing | done |
| ------------------------------------------------------------ | -------------------------------------------------------------------------------- | ----- | ---- |
| 0106 There is no way to search the wiki from the preview | 0118 Listings in a fenced block are not coloured in the preview | | |
| 0102 Diagrams render on a white surface in every theme | 0115 Mermaid diagrams, on par with D2 | | |
| 0101 The live-editing behaviours are only checked by hand | 0114 The cover's notebook screenshot is of another vault | | |
| 0026 Check frontmatter with an HQL-like data type system | 0113 A relative image in a card is not shown in the preview | | |
| 0025 Extend the shared test coverage | 0105 The preview freezes on the card it was opened over | | |
| 0024 Define symbolic link semantics | 0100 A `???` callout snaps shut on every re-render | | |
| 0021 Specify the vault directory and the standard's boundary | 0019 Review lexical compatibility with CommonMark | | |
| 0008 A public card linking to a private one needs a policy | 0015 CommonMark's own examples as a test dataset | | |
| 0007 Conversion should name its output target | 0013 The roadmap is behind the releases, and it is the one page that states them | | |
| | 0012 An embedded card's Markdown links resolve from the host page | | |
| | 0011 Vault and namespace: the declared design, HMD, and HQL have drifted apart | | |
<!-- /hql:output -->

## Archive
Expand All @@ -120,6 +120,7 @@ issues
<!-- hql:output hash=b6e6de913a2f status=ok -->
| id | title |
| ---- | ------------------------------------------------------------------------------- |
| 0117 | A language server, written in Rust |
| 0116 | Vault not found: the extension should say so and offer to initialize one |
| 0112 | A plain Markdown link in the preview does nothing |
| 0111 | Run needs `hql` installed by hand |
Expand Down
23 changes: 15 additions & 8 deletions doc/status/lsp.hmd
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,19 @@ in [`semantics.hmd`](semantics.hmd), and the website in

## Status

**Written, tested, and prepared for its first release, 0.1.0.** The program builds, and it answers
**Released as 0.1.0 on 2026-11-25.** The program builds, and it answers
semantic tokens, go to definition, hover, and diagnostics for the three ways a
reference fails to resolve. It reads the text in the editor in front of the
text on disk, so a reference to a card that is not saved yet resolves. 51
tests: the unit tests, 26 tests that speak the protocol to a server on a
thread, and 4 that run the built program.

The VS Code extension is a client of it, written and not yet released. There
is no release of the server, and the pinned toolchain does not carry it. A
developer builds it with Cargo and points the extension's setting, Neovim, or
Helix at the binary.
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
hypermarkdown-lsp`, and puts it on `PATH`.

The server replaces the Python language server that was decided earlier and
never built. Python stays the canonical implementation and the only complete
Expand All @@ -40,9 +42,8 @@ linter.

| Status | Work | Notes | References |
| --- | --- | --- | --- |
| doing | **Cut the first release, 0.1.0.** Release the resolver crate 0.4.0 first, run the release workflow by hand once to see all five archives build on real runners, push the tag `lsp-v0.1.0`, and publish `hypermarkdown-lsp` to crates.io | The workflow has never run: it was rehearsed on one machine, for the two macOS targets only. The musl and Windows builds are untried | [[hmd-0033#distribution]] |
| todo | **Publish to crates.io from the workflow.** The first publication is by hand, because crates.io allows a trusted publisher only on a crate that exists. Configure one for `hypermarkdown-lsp`, naming this repository, `release-lsp.yml` and an environment, and add the job | The resolver crate's workflow is the model | [[hmd-0033#distribution]] |
| blocked | **The toolchain carries the binary** beside `d2` and `hql`, so the extension bundles it and a user installs nothing. Unblocks when the first release is cut | Decide first whether the toolchain repository builds the binary or takes it from this repository's release | [[hmd-0033#distribution]] |
| 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,11 +90,15 @@ 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 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
by hand. The resolver crate 0.4.0 went first.
- **A release workflow** — `release-lsp.yml`, on an `lsp-vX.Y.Z` tag: the
gates, one program for each of the five platforms the toolchain serves,
named after its Rust target as HQL names its archives, and a GitHub release
with the archives and `SHA256SUMS`. A run by hand builds everything and
cuts nothing. Not yet run [[hmd-0033#distribution]].
cuts nothing [[hmd-0033#distribution]].
- **A CI job** — format, lints as errors, the tests against the committed
lockfile on Linux, macOS, and Windows, and a build on the minimum supported
Rust version.
Expand All @@ -116,6 +121,8 @@ cargo test --locked

## Changelog

- 2026-11-25: 0.1.0 is released. The row for cutting it becomes a Done row,
and the toolchain row is no longer blocked.
- 2026-11-25: the package is `hypermarkdown-lsp`, because `hmd-lsp` on
crates.io is another project's. The question about crates.io is answered.
- 2026-11-25: the release workflow is written; cutting the first release is
Expand Down
Loading
Loading