From e03c0759e8bb8d17ba3db467e2cfd865eb2f91c7 Mon Sep 17 00:00:00 2001 From: Yauhen Yakimovich Date: Wed, 25 Nov 2026 19:51:09 +0100 Subject: [PATCH] release: HyperMarkDown for VS Code 0.7.0 The extension moves to 0.7.0, a minor release. It colours HQL, in a `.hql` file and in a cell, colours a cell in any language as that language, and knows the fence names of GitHub Linguist. It is a client of `hmd-lsp`, and with toolchain 0.6.0 pinned, every platform build carries the server. The changelog dates its section. The README and the packaging comment say the build carries `hmd-lsp`. The tracker moves the blocked row for carrying the server to Done, the status page and the roadmap name 0.7.0, and the generated views are rendered again. --- doc/public/roadmap.hmd | 9 ++++++++- doc/status/index.hmd | 2 +- doc/status/open.hmd | 10 +++++----- doc/status/vsc-ext.hmd | 22 +++++++++++++++++----- package-lock.json | 2 +- tools/hmd-vsc-ext/.vscodeignore | 6 +++--- tools/hmd-vsc-ext/CHANGELOG.md | 10 ++++++++-- tools/hmd-vsc-ext/README.md | 15 +++++++-------- tools/hmd-vsc-ext/package.json | 2 +- 9 files changed, 51 insertions(+), 27 deletions(-) diff --git a/doc/public/roadmap.hmd b/doc/public/roadmap.hmd index a6fac2c..a8de9b8 100644 --- a/doc/public/roadmap.hmd +++ b/doc/public/roadmap.hmd @@ -7,6 +7,13 @@ nav: ## News and updates +**2026-11-25 — VS Code extension 0.7.0.** HQL is highlighted, in a `.hql` +file and in a cell. A cell in another language, such as `python#eval`, is +coloured as that language, and a fence may name any language GitHub knows. The +extension now brings `hmd-lsp`, the language server: a link that names no card +is coloured as broken, hover says what a link resolves to, and **Go to +Definition** opens the card. + **2026-11-25 — VS Code extension 0.6.1, `hmd` 0.5.1.** A card is read only inside a vault, a directory that holds `.hmd/`. When no `.hmd/` is above a card, the extension says **vault not found** and offers **Initialize Vault…**, @@ -75,7 +82,7 @@ type; the preview needs no Python. | **`@hypermarkdown/core`** — TypeScript | 0.4.0 | [npm](https://www.npmjs.com/package/@hypermarkdown/core) | | **`hypermarkdown`** — Rust resolver | 0.3.0 | [crates.io](https://crates.io/crates/hypermarkdown) | | **`hmd-semantics`** — semantic index | 0.2.0 | [PyPI](https://pypi.org/project/hypermarkdown-semantics/) | -| **`hmd-vsc-ext`** — VS Code | 0.6.1 | [Marketplace](https://marketplace.visualstudio.com/items?itemName=hypermarkdown.hmd), [Open VSX](https://open-vsx.org/extension/hypermarkdown/hmd) | +| **`hmd-vsc-ext`** — VS Code | 0.7.0 | [Marketplace](https://marketplace.visualstudio.com/items?itemName=hypermarkdown.hmd), [Open VSX](https://open-vsx.org/extension/hypermarkdown/hmd) | | **`hql`** — the Hyper Query Language | 0.8.0 | [crates.io](https://crates.io/crates/hql), [releases](https://github.com/ewiger/hql/releases) | The **HMD language specification** versions independently of the tools, and diff --git a/doc/status/index.hmd b/doc/status/index.hmd index 2012b9d..0defd47 100644 --- a/doc/status/index.hmd +++ b/doc/status/index.hmd @@ -11,7 +11,7 @@ thing you care about; this page is the one-line version of each. | [**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 | 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 | +| [**VS Code extension**](vsc-ext.hmd) | The hmd preview, diagnostics, and the graph, inside the editor | `0.7.0` live on both galleries, with HQL highlighting and the language server in the build | Automate the by-hand release checks | | [**website**](pages.hmd) | — 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 | ## Generated views diff --git a/doc/status/open.hmd b/doc/status/open.hmd index 9d788a4..204738b 100644 --- a/doc/status/open.hmd +++ b/doc/status/open.hmd @@ -76,8 +76,8 @@ the board, in the order this view lists them. | state | rows | | ------- | ---- | | doing | 2 | -| todo | 31 | -| blocked | 4 | +| todo | 32 | +| blocked | 3 | | backlog | 15 | | parked | 3 | @@ -124,14 +124,14 @@ Every open row, `doing` first, then `todo`, `blocked`, `backlog` and | todo | Recognise diagram cells. | [ts-core](ts-core.hmd) | | todo | Recognise a `mermaid#show` fence as a diagram. | [ts-core](ts-core.hmd) | | todo | Colour the listings in the preview. | [vsc-ext](vsc-ext.hmd) | -| todo | Colour a listing whose fence names a cell. | [vsc-ext](vsc-ext.hmd) | -| todo | Confirm the grammar colours a link inside a paragraph. | [vsc-ext](vsc-ext.hmd) | +| todo | Colour a `d2` listing in the editor. | [vsc-ext](vsc-ext.hmd) | +| todo | Colour a fence nested in a list or a quote. | [vsc-ext](vsc-ext.hmd) | +| todo | Colour a link inside a paragraph from the grammar. | [vsc-ext](vsc-ext.hmd) | | todo | Automate the by-hand checks. | [vsc-ext](vsc-ext.hmd) | | todo | Create the card a relative link points at. | [vsc-ext](vsc-ext.hmd) | | todo | Diagram cells in the preview. | [vsc-ext](vsc-ext.hmd) | | todo | Draw Mermaid diagrams in the preview | [vsc-ext](vsc-ext.hmd) | | blocked | Redirect the retired domain | [hmd](hmd.hmd) | -| blocked | Carry `hmd-lsp` in the build. | [vsc-ext](vsc-ext.hmd) | | blocked | Drop the mask. | [vsc-ext](vsc-ext.hmd) | | blocked | Name the HQL project and import `hmd` on the command line. | [vsc-ext](vsc-ext.hmd) | | backlog | Lint text, not just files. | [hmd](hmd.hmd) | diff --git a/doc/status/vsc-ext.hmd b/doc/status/vsc-ext.hmd index a81a88e..6a95c42 100644 --- a/doc/status/vsc-ext.hmd +++ b/doc/status/vsc-ext.hmd @@ -28,7 +28,9 @@ embeds in [`ts-core.hmd`](ts-core.hmd), the Rust resolver in ## Status -**`0.6.1` is released to both galleries, and cards are notebooks.** The +**`0.7.0` is released to both galleries, and cards are notebooks.** It +colours HQL and cells in any language, and its build carries the language +server. The extension reads cards through the core it embeds, so it conforms to HyperMarkDown 0.1.0 as far as that core does — every rule but the publication model. 0.6.0, released on 2026-11-25, carries the 0.1 rules, and 0.6.1, the @@ -73,7 +75,6 @@ picks and re-indexes without a reload, since `0.6.1` [issue 0116]. | Status | Work | Notes | References | | --- | --- | --- | --- | -| blocked | **Carry `hmd-lsp` in the build.** No VSIX holds the program, so a user gets the server only from `PATH` or from the setting. The server is released as 0.1.0. Unblocks when the pinned toolchain carries it; the client already looks in `toolchain/bin/` first | The release workflow checks which binaries a VSIX holds, and that list gains `hmd-lsp` | [[hmd-0033#distribution]] | | todo | **Colour the listings in the preview.** A fenced block in Python, C, or any other language shows in one colour, because neither the extension nor the core has a highlighter. Colour it as the editor does [issue 0118] | Shiki reads the same TextMate grammars the editor uses, this extension's own among them, so a listing would look the same on both sides. It must run in the extension host and send coloured HTML, because the webview's content policy allows no script from outside | [[hmd-0021#11-webview-hardening]] | | todo | **Colour a `d2` listing in the editor.** A `d2` fence shows in one colour unless the user has installed an extension for D2, because this extension carries no grammar for it. The fence table already gives a `d2` fence the scope `source.d2`. Carry a grammar that declares that scope [issue 0118] | `hql` has its grammar. The extension carries `d2` itself for the preview, so a user expects the editor to colour it without a second extension | [[hmd-0026]] | | todo | **Colour a fence nested in a list or a quote.** The fence rules apply at the top level of a card. Inside a list item or a block quote the Markdown grammar reads the fence, so a cell there is not coloured, and a language outside the Markdown list is not either. Move the fence rules into an injection [issue 0118] | Not tested in a tokenizer; it follows from where the rules are included. The same change as the link rules need | — | @@ -118,6 +119,10 @@ about 300 MB on first run, which is why it is not in the default test command. ## Done +- **The build carries the language server** — every platform build holds + `hmd-lsp` 0.1.0 in `toolchain/bin/`, from toolchain 0.6.0, and the client + looks there before `PATH`. The release workflow checks each VSIX for it; + released in 0.7.0 [[hmd-0033#the-vs-code-extension-is-a-client]]. - **A client of the language server** — the extension starts `hmd-lsp` for `.hmd` files, found by the `hyperMarkdown.languageServer.path` setting, then in the build's toolchain directory, then on `PATH`, with the server's @@ -126,7 +131,7 @@ about 300 MB on first run, which is why it is not in the default test command. colour as an error. With no program it says so once and changes nothing else, and it never starts the server in an untrusted or a virtual workspace. Checked by hand in a development host against the server's - build; unreleased [[hmd-0033#the-vs-code-extension-is-a-client]]. + build; released in 0.7.0 [[hmd-0033#the-vs-code-extension-is-a-client]]. - **Vault not found, and Initialize Vault** — a card with no `.hmd/` above it, up to the workspace folder, is not read unless `hyperMarkdown.root` names an explicit root, as the specification requires. The preview, an opened card, @@ -213,7 +218,8 @@ about 300 MB on first run, which is why it is not in the default test command. - **Syntax highlighting** for `.hmd` as its own language. - **Highlighting for HQL** — the extension registers HQL as a language, so a `.hql` file is coloured, and the body of an `hql` fence is coloured the same - way. The token rules follow the HQL scanner and parser of 0.8.0. + way. The token rules follow the HQL scanner and parser of 0.8.0; released + in 0.7.0. - **Highlighting for a cell in any language** — a fence with a cell suffix, such as `python#eval`, is coloured as a plain `python` fence is. The Markdown grammar does not accept `#` after the language, so the extension @@ -224,7 +230,8 @@ about 300 MB on first run, which is why it is not in the default test command. the 770 languages of Linguist 9.7.0 that have a TextMate scope, by name, alias, or a file extension that one language alone uses. The body is coloured when an installed extension declares the scope. A rule for any - other fence colours the fence line alone [`syntaxes/languages.json`]. + other fence colours the fence line alone; released in 0.7.0 + [`syntaxes/languages.json`]. - **Several vaults in one folder** — a vault is discovered by walking up from the card to the nearest `.hmd/`, stopping at the containing workspace folder, and the window holds one index, watcher, and diagnostic scope per vault, built @@ -258,6 +265,11 @@ npm run -w tools/hmd-vsc-ext package ## Changelog +- 2026-11-25: 0.7.0. Status names it. Done rows for HQL highlighting, for a + cell in any language, for the Linguist fence table, and for carrying + `hmd-lsp` in the build, whose blocked row is gone. Open rows for a `d2` + grammar, for a fence nested in a list or a quote, and for a link inside a + paragraph, which was reproduced in a tokenizer. - 2026-11-25: the client was checked by hand in a running editor, so that row is gone, and the server it starts is released as 0.1.0. - 2026-11-25: the client of the language server is written, so its Open row diff --git a/package-lock.json b/package-lock.json index 1a22a44..e1750e3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7147,7 +7147,7 @@ }, "tools/hmd-vsc-ext": { "name": "hmd", - "version": "0.6.1", + "version": "0.7.0", "license": "MIT", "dependencies": { "@hypermarkdown/core": "^0.4.0", diff --git a/tools/hmd-vsc-ext/.vscodeignore b/tools/hmd-vsc-ext/.vscodeignore index 3ee8ed7..798f3b5 100644 --- a/tools/hmd-vsc-ext/.vscodeignore +++ b/tools/hmd-vsc-ext/.vscodeignore @@ -1,7 +1,7 @@ # The VSIX ships two bundles, the static assets they need, and — in a -# platform-specific build — `toolchain/bin/d2`, and `toolchain/bin/hql` where -# HQL publishes the platform, from the pinned toolchain -# release (issue 0107), nothing else (HMD-0021 §12). README.md, CHANGELOG.md, and LICENSE stay: the marketplace +# platform-specific build — `toolchain/bin/d2`, `toolchain/bin/hmd-lsp`, and +# `toolchain/bin/hql` where HQL publishes the platform, from the pinned +# toolchain release (issue 0107), nothing else (HMD-0021, Packaging). README.md, CHANGELOG.md, and LICENSE stay: the marketplace # renders the first two as its Details and Changelog tabs. src/** diff --git a/tools/hmd-vsc-ext/CHANGELOG.md b/tools/hmd-vsc-ext/CHANGELOG.md index 69f4366..79d865e 100644 --- a/tools/hmd-vsc-ext/CHANGELOG.md +++ b/tools/hmd-vsc-ext/CHANGELOG.md @@ -21,8 +21,14 @@ against ## [Unreleased] +## [0.7.0] — 2026-11-25 + ### Added +- **The build carries the language server.** Every platform build holds + `hmd-lsp` 0.1.0, from toolchain 0.6.0, so a link that names no card is + coloured as an error, hover on a link says what it resolves to, and **Go to + Definition** opens the card, with nothing to install. - **Syntax highlighting for HQL.** A `.hql` file is coloured, and so is the body of an `hql` fence in a card: `hql`, `hql#eval`, `hql#query`. Comment toggling and bracket matching inside a cell are those of HQL. @@ -42,8 +48,7 @@ against `hyperMarkdown.languageServer.path`, then in the build's `toolchain/bin/`, then on `PATH`. With the server, a link that names no card, names several cards, or leaves the namespace is coloured as an error, hover on a link says - what it resolves to, and **Go to Definition** opens the card. No build - carries the program yet, so today it comes from the setting or from `PATH`. + what it resolves to, and **Go to Definition** opens the card. - **The extension works the same without the server.** When no program is found, it says so once per installation and changes nothing else. The server never starts in an untrusted or a virtual workspace, and @@ -442,6 +447,7 @@ built yet, and the flag comes off when they are. [Unreleased]: https://github.com/ewiger/hypermarkdown/compare/vsc-ext-v0.6.1...HEAD [0.6.1]: https://github.com/ewiger/hypermarkdown/compare/vsc-ext-v0.6.0...vsc-ext-v0.6.1 +[0.7.0]: https://github.com/ewiger/hypermarkdown/compare/vsc-ext-v0.6.1...vsc-ext-v0.7.0 [0.6.0]: https://github.com/ewiger/hypermarkdown/compare/vsc-ext-v0.5.2...vsc-ext-v0.6.0 [0.5.2]: https://github.com/ewiger/hypermarkdown/compare/vsc-ext-v0.5.1...vsc-ext-v0.5.2 [0.5.1]: https://github.com/ewiger/hypermarkdown/compare/vsc-ext-v0.5.0...vsc-ext-v0.5.1 diff --git a/tools/hmd-vsc-ext/README.md b/tools/hmd-vsc-ext/README.md index 6a9bfcf..50f35ab 100644 --- a/tools/hmd-vsc-ext/README.md +++ b/tools/hmd-vsc-ext/README.md @@ -104,14 +104,13 @@ ARM64, where HQL publishes no binary yet, put `hql` on `PATH`. Set `hyperMarkdown.hql.path` to run cells with a different `hql`. Reading a card's saved outputs needs nothing. -The extension is a client of `hmd-lsp`, the HyperMarkDown language server, when -that program is on your machine. With it, a link that names no card is coloured -as broken, hover on a link says what it resolves to, and **Go to Definition** -opens the card. No build carries the program yet: download `hmd-lsp` from -[its release](https://github.com/ewiger/hypermarkdown/releases), or run -`cargo install hypermarkdown-lsp`, and put it on `PATH` or set -`hyperMarkdown.languageServer.path`. Everything else works the same without -it. Completion and rename are not written yet. +The extension is a client of `hmd-lsp`, the HyperMarkDown language server, and +the build for your platform carries it. With it, a link that names no card is +coloured as broken, hover on a link says what it resolves to, and **Go to +Definition** opens the card. Set `hyperMarkdown.languageServer.path` to use +another `hmd-lsp`, such as one from `cargo install hypermarkdown-lsp`. +Everything else works the same without the server. Completion and rename are +not written yet. ## Settings diff --git a/tools/hmd-vsc-ext/package.json b/tools/hmd-vsc-ext/package.json index bde3fc2..4fe17e8 100644 --- a/tools/hmd-vsc-ext/package.json +++ b/tools/hmd-vsc-ext/package.json @@ -2,7 +2,7 @@ "name": "hmd", "displayName": "HyperMarkDown", "description": "An editor for HyperMarkDown (.hmd) knowledge bases: real-time preview, embeds, a graph of the vault, HQL cells, and diagnostics.", - "version": "0.6.1", + "version": "0.7.0", "license": "MIT", "icon": "media/logo.png", "publisher": "hypermarkdown",