Skip to content

Inline fluent - #731

Merged
SimonCropp merged 2 commits into
mainfrom
inline-fluent
Aug 9, 2026
Merged

Inline fluent#731
SimonCropp merged 2 commits into
mainfrom
inline-fluent

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

No description provided.

Inline snapshots are moving from a dedicated VerifyInline entry point to a
global mode plus a .Snapshot(expected) terminator, so the patcher has to work
against a different call shape:

* The literal is now the first argument of Snapshot rather than the second of
  VerifyInline, so InsertOrCheck sets argument zero.
* Append adds a .Snapshot(...) call to a verify invocation that has never had
  one. Snapshot terminates the chain, so it lands after anything already
  chained on, not at the invocation's own closing paren.
* Remove strips the call, along with the whitespace and line break it sat on,
  for when inline is switched off and the snapshot migrates back to a file.

InlinePatch carries the mode and InlinePatchFile bumps to version 2 to hold it.
Remove is a configuration change with nothing to review, so both the viewer's
message handler and DiffRunner.AddInlineAsync refuse it; it is applied in
process through InlineApplier instead.
@SimonCropp
SimonCropp merged commit 84317c0 into main Aug 9, 2026
10 checks passed
@SimonCropp
SimonCropp deleted the inline-fluent branch August 9, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant