Files
lucisv/crates/vfmt_server/Cargo.toml
T
lucioandClaude Fable 5 2ba995d1c9 Add server-lint: lint diagnostics and quick fixes in vfmt-server
Lint warnings (code = rule name, source = vfmt) merge with parse
errors into ONE publishDiagnostics through the single publish path --
the two-publish flicker bug is structurally impossible, pinned by an
e2e asserting notification count. textDocument/codeAction offers a
quickfix per Safe fix (byte-identical to vfmt check --fix, verified
live) and source.fixAll.vfmt as one honest pass with no converge
loop (the client's edit/re-lint cycle converges, verified at 3
rounds) and no claimed-resolved diagnostics list. context.only
honored; tab width from vfmt.toml; module-filename speaks via the
URI; waived violations never published; Unsafe fixes never offered.

Filed, not papered over: a server fix can currently edit inside a
// vfmt: off fence (the fence filter lives in crates/vfmt; a shared
helper is the next round's top item -- no corruption possible since
only Safe fixes exist, but the hands-off promise has a documented
editor-side hole). Also filed: the per-keystroke second parse and a
future vfmt.toml lint key.

108 vfmt_server tests (104 unit + 4 e2e). Dev: Opus agent; QA:
Sonnet agent (every claim driven live over stdio); review in
docs/features/server-lint/README.md.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-19 11:11:23 -07:00

21 lines
519 B
TOML

[package]
name = "vfmt_server"
version.workspace = true
edition.workspace = true
license.workspace = true
[[bin]]
name = "vfmt-server"
path = "src/main.rs"
[dependencies]
vfmt_core = { path = "../vfmt_core" }
vlog_parser = { path = "../vlog_parser" }
vlog_semantic = { path = "../vlog_semantic" }
vlog_formatter = { path = "../vlog_formatter" }
vlog_linter = { path = "../vlog_linter" }
lsp-server = { workspace = true }
lsp-types = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }