v0.6.0: the ghost-text release

Inline templates (M15) and the linear pairs::analyze fix, released
together. Version bumped across workspace, extension and docs; changelog
entry; dist/ rebuilt for all five targets plus the vsix.

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
lucioandClaude Fable 5 committed 2026-08-25 14:55:53 -07:00
1 parent 83eb908f54
commit df53ecea2c
6 files changed
+47 -20

No files matched your search

+27
View File
@@ -4,6 +4,33 @@ All notable changes to vfmt are recorded here. Versions follow
[semantic versioning](https://semver.org/); until 1.0 the CLI's exit codes
(see `README.md`) are the only frozen contract.
## 0.6.0 — 2026-08-25
The ghost-text release: the editor now finishes the block you open.
### Inline templates (ghost text)
Type `if (` and grey `) begin … end` appears behind the cursor; type `begin`
at the end of a line and its `end` does. Tab accepts as a snippet — the
cursor lands in the condition first and on the indented body line second.
This is LSP 3.18 `textDocument/inlineCompletion`: token-based triggers (a
comment, a string or `my_if` never fire), offered only while the construct
is genuinely unclosed, indented to the site. `vfmt.inlineTemplates: false`
turns it off. The VS Code extension opts into the still-proposed client
feature; Neovim's built-in client does not speak it yet, and those users
keep the same skeletons in the completion list. Details:
[inline-templates](docs/features/inline-templates/README.md).
### Scope matching is linear
`pairs::analyze` — the matcher behind the rainbow, the missing-`end`
diagnostic and the new ghost-text gate — was quadratic in nesting depth two
ways (the per-push depth scan, and a closer that matches nothing rescanning
the stack). Both are now running counts: 8,000 nested `begin`s went from
629 ms to 2.3 ms per pass, on a path the ghost text runs at every
keystroke. Output is proven bit-identical on the corpus and by two
independent old-algorithm oracles kept as regression tests.
## 0.5.0 — 2026-08-25
The navigation release. `0.3.0` taught vfmt to *change* a project and `0.4.0`
Generated
+8 -8
View File
@@ -217,7 +217,7 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
[[package]]
name = "vfmt"
version = "0.5.0"
version = "0.6.0"
dependencies = [
"rayon",
"vfmt_core",
@@ -228,11 +228,11 @@ dependencies = [
[[package]]
name = "vfmt_core"
version = "0.5.0"
version = "0.6.0"
[[package]]
name = "vfmt_server"
version = "0.5.0"
version = "0.6.0"
dependencies = [
"lsp-server",
"lsp-types",
@@ -248,14 +248,14 @@ dependencies = [
[[package]]
name = "vlog_formatter"
version = "0.5.0"
version = "0.6.0"
dependencies = [
"vlog_parser",
]
[[package]]
name = "vlog_linter"
version = "0.5.0"
version = "0.6.0"
dependencies = [
"vlog_formatter",
"vlog_parser",
@@ -264,11 +264,11 @@ dependencies = [
[[package]]
name = "vlog_parser"
version = "0.5.0"
version = "0.6.0"
[[package]]
name = "vlog_refactor"
version = "0.5.0"
version = "0.6.0"
dependencies = [
"vlog_parser",
"vlog_semantic",
@@ -276,7 +276,7 @@ dependencies = [
[[package]]
name = "vlog_semantic"
version = "0.5.0"
version = "0.6.0"
dependencies = [
"vlog_parser",
]
+1 -1
View File
@@ -12,7 +12,7 @@ members = [
]
[workspace.package]
version = "0.5.0"
version = "0.6.0"
authors = ["Guoliang Chen"]
edition = "2021"
license = "MIT"
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "vfmt",
"version": "0.5.0",
"version": "0.6.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "vfmt",
"version": "0.5.0",
"version": "0.6.0",
"license": "MIT",
"dependencies": {
"vscode-languageclient": "9.0.1"
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "vfmt",
"displayName": "vfmt — Verilog/SystemVerilog",
"description": "Formatting, diagnostics, navigation and semantic highlighting for Verilog and SystemVerilog, served by the vfmt language server.",
"version": "0.5.0",
"version": "0.6.0",
"publisher": "guoliangchen",
"author": "Guoliang Chen",
"license": "MIT",
+8 -8
View File
@@ -101,9 +101,9 @@ recreated on every run.
```
dist/
vfmt-0.5.0-aarch64-apple-darwin
vfmt-server-0.5.0-aarch64-apple-darwin
vfmt-0.5.0.vsix
vfmt-0.6.0-aarch64-apple-darwin
vfmt-server-0.6.0-aarch64-apple-darwin
vfmt-0.6.0.vsix
SHA256SUMS
```
@@ -153,11 +153,11 @@ npx @vscode/vsce package --out ../../dist/vfmt-<version>.vsix
```bash
# the CLI and the server: anywhere on PATH
install -m 755 dist/vfmt-0.5.0-aarch64-apple-darwin ~/.local/bin/vfmt
install -m 755 dist/vfmt-server-0.5.0-aarch64-apple-darwin ~/.local/bin/vfmt-server
install -m 755 dist/vfmt-0.6.0-aarch64-apple-darwin ~/.local/bin/vfmt
install -m 755 dist/vfmt-server-0.6.0-aarch64-apple-darwin ~/.local/bin/vfmt-server
# the editor extension: sideload, no marketplace involved
code --install-extension dist/vfmt-0.5.0.vsix
code --install-extension dist/vfmt-0.6.0.vsix
```
Publishing the artifacts is a matter of attaching `dist/`'s contents plus
@@ -194,10 +194,10 @@ The commands themselves, once those exist:
# VS Code Marketplace: needs an Azure DevOps PAT for the publisher
npx @vscode/vsce publish -p "$VSCE_TOKEN"
# ... or publish an already-built package
npx @vscode/vsce publish --packagePath dist/vfmt-0.5.0.vsix -p "$VSCE_TOKEN"
npx @vscode/vsce publish --packagePath dist/vfmt-0.6.0.vsix -p "$VSCE_TOKEN"
# Open VSX (VSCodium, Gitpod, Cursor): needs an Eclipse Foundation account
npx ovsx publish dist/vfmt-0.5.0.vsix -p "$OVSX_TOKEN"
npx ovsx publish dist/vfmt-0.6.0.vsix -p "$OVSX_TOKEN"
```
Both tokens are secrets. Neither belongs in this repo, in a shell history, or