v0.7.0: aligned ghost text, designer trigger set

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
lucioandClaude Fable 5 committed 2026-08-25 16:13:42 -07:00
1 parent 765cd010c2
commit a284e33110
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.7.0 — 2026-08-25
Ghost text grows up: aligned, and fluent in the constructs a designer
actually types.
### Snippets land aligned
The `end` of an accepted ghost snippet used to land one indent level deeper
than its opener: VS Code re-indents every snippet line after the first with
the trigger line's own indentation, and the server was baking that
indentation in as well. Ghost bodies are now indented *relative* to the
trigger line — the editor's own `tabSize`/`insertSpaces` place them, so
`begin` and `end` align in any indent style (`vfmt.indent` no longer sizes
them). The completion popup's multi-line skeletons had the same latent
double indent since 0.4.0; they keep their layout and now tell the editor
`insertTextMode: asIs` instead.
### The designer trigger set
Ghost text now finishes: `case (`/`casez (`/`casex (` with arms and
`endcase`; `for (` with a dialect-correct header (`int i` in SystemVerilog,
`i = i + 1` in Verilog); `while (`; `always_ff @(` with `posedge clk`;
`always @(` offering the clocked shape first and `*)` second (Alt+] cycles);
`fork`→`join`, `generate`→`endgenerate`, and `module`→named `endmodule`.
Every expansion is offered only while its construct is genuinely unclosed,
and every accepted expansion is proven to parse.
## 0.6.0 — 2026-08-25
The ghost-text release: the editor now finishes the block you open.
Generated
+8 -8
View File
@@ -217,7 +217,7 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
[[package]]
name = "vfmt"
version = "0.6.0"
version = "0.7.0"
dependencies = [
"rayon",
"vfmt_core",
@@ -228,11 +228,11 @@ dependencies = [
[[package]]
name = "vfmt_core"
version = "0.6.0"
version = "0.7.0"
[[package]]
name = "vfmt_server"
version = "0.6.0"
version = "0.7.0"
dependencies = [
"lsp-server",
"lsp-types",
@@ -248,14 +248,14 @@ dependencies = [
[[package]]
name = "vlog_formatter"
version = "0.6.0"
version = "0.7.0"
dependencies = [
"vlog_parser",
]
[[package]]
name = "vlog_linter"
version = "0.6.0"
version = "0.7.0"
dependencies = [
"vlog_formatter",
"vlog_parser",
@@ -264,11 +264,11 @@ dependencies = [
[[package]]
name = "vlog_parser"
version = "0.6.0"
version = "0.7.0"
[[package]]
name = "vlog_refactor"
version = "0.6.0"
version = "0.7.0"
dependencies = [
"vlog_parser",
"vlog_semantic",
@@ -276,7 +276,7 @@ dependencies = [
[[package]]
name = "vlog_semantic"
version = "0.6.0"
version = "0.7.0"
dependencies = [
"vlog_parser",
]
+1 -1
View File
@@ -12,7 +12,7 @@ members = [
]
[workspace.package]
version = "0.6.0"
version = "0.7.0"
authors = ["Guoliang Chen"]
edition = "2021"
license = "MIT"
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "vfmt",
"version": "0.6.0",
"version": "0.7.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "vfmt",
"version": "0.6.0",
"version": "0.7.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.6.0",
"version": "0.7.0",
"publisher": "guoliangchen",
"author": "Guoliang Chen",
"license": "MIT",
+8 -8
View File
@@ -101,9 +101,9 @@ recreated on every run.
```
dist/
vfmt-0.6.0-aarch64-apple-darwin
vfmt-server-0.6.0-aarch64-apple-darwin
vfmt-0.6.0.vsix
vfmt-0.7.0-aarch64-apple-darwin
vfmt-server-0.7.0-aarch64-apple-darwin
vfmt-0.7.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.6.0-aarch64-apple-darwin ~/.local/bin/vfmt
install -m 755 dist/vfmt-server-0.6.0-aarch64-apple-darwin ~/.local/bin/vfmt-server
install -m 755 dist/vfmt-0.7.0-aarch64-apple-darwin ~/.local/bin/vfmt
install -m 755 dist/vfmt-server-0.7.0-aarch64-apple-darwin ~/.local/bin/vfmt-server
# the editor extension: sideload, no marketplace involved
code --install-extension dist/vfmt-0.6.0.vsix
code --install-extension dist/vfmt-0.7.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.6.0.vsix -p "$VSCE_TOKEN"
npx @vscode/vsce publish --packagePath dist/vfmt-0.7.0.vsix -p "$VSCE_TOKEN"
# Open VSX (VSCodium, Gitpod, Cursor): needs an Eclipse Foundation account
npx ovsx publish dist/vfmt-0.6.0.vsix -p "$OVSX_TOKEN"
npx ovsx publish dist/vfmt-0.7.0.vsix -p "$OVSX_TOKEN"
```
Both tokens are secrets. Neither belongs in this repo, in a shell history, or