Release smoke: the ranges probe expects a block laid out at its own indentation (TODO §66.2)
ci / checks (push) Successful in 1m54s
ci / corpus (push) Successful in 36s
release / build-and-publish (push) Successful in 7m18s

The v0.63.0 release build failed at tools/release.sh's server smoke test:
smoke.js still expected rangesFormatting to re-indent a named line to the
configured depth. Selection formatting keeps a block's written leading
whitespace, so the probe now checks that the named fork is re-laid from
its own two spaces, the named wire stays put and the unnamed block keeps
its bytes. Checked against a local release lucisv-server (smoke: OK).

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
lucioandClaude Fable 5.2 committed 2026-11-09 19:50:52 -08:00
1 parent e115f9fc8f
commit ea586d29bc
1 file changed
+10 -5
+10 -5
View File
@@ -197,9 +197,11 @@ server.stdin.end(
params: { textDocument: { uri }, options: { tabSize: 2, insertSpaces: true } },
}),
// Multi-range formatting (LSP 3.18): two ranges, one round trip. Lines 2
// and 8 of SOURCE (0-based 1 and 7) are `wire a;` and `initial fork`; only
// the first moves under `indent = 4`, so the answer proves both that the
// request is served and that it left the range between them alone.
// and 8 of SOURCE (0-based 1 and 7) are `wire a;` and `initial fork`. Each
// named block is laid out where it stands (selection formatting keeps a
// block's own leading whitespace): the wire is already laid out, the fork
// is re-laid under `indent = 4` from its two written spaces, and the
// `initial begin` between them keeps its bytes.
frame({
jsonrpc: '2.0',
id: 7,
@@ -389,8 +391,11 @@ server.on('close', (code) => {
fail(`expected one edit from rangesFormatting, got ${JSON.stringify(ranged.result)}`);
}
const partial = ranged.result[0].newText;
if (!partial.includes('\n wire a;')) {
fail(`the named line was not laid out:\n${partial}`);
if (!partial.includes('\n initial\n fork\n c = 1;\n join\n')) {
fail(`the named block was not laid out at its own indentation:\n${partial}`);
}
if (!partial.includes('\n wire a;')) {
fail(`a named line must keep the indentation it was written at:\n${partial}`);
}
if (!partial.includes('\n initial begin')) {
fail(`a line no range named must keep its own bytes:\n${partial}`);