Skip to content

Inline append already applied - #857

Merged
SimonCropp merged 4 commits into
mainfrom
inline-append-already-applied
Aug 27, 2026
Merged

Inline append already applied#857
SimonCropp merged 4 commits into
mainfrom
inline-append-already-applied

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

No description provided.

A multi-targeted project transitioning to inline snapshots fails the same
call site under every framework, and each one queues an append. Accepting
the first writes the literal the rest are still carrying, so the second
accept found a Snapshot call in the way and refused - reporting a failure
over a source file that was already right, and sending the reader off to
re-run a test with nothing left to say.

TryAppend now reads the chained call's argument before refusing. Same
content is AlreadyApplied; different content is still NotFound, since that
one genuinely cannot say what it wants until it has been re-run against the
literal now in the source. Compared by value rather than by text, so a
literal written in another shape still counts and F# answers as C# does
despite the layout of its triple quoted literal.

WalkChain reports the position of the call it found rather than the fact of
it, because a caller deciding what to do about one has to read its argument.
docs/inline.md is generated, so the paragraph was written into the output
and the next build stripped it back out. It belongs in the mdsource the
generator reads; the generated file is unchanged either way.
@SimonCropp SimonCropp added this to the 20.1.2 milestone Aug 27, 2026
@SimonCropp
SimonCropp merged commit 273facf into main Aug 27, 2026
11 checks passed
@SimonCropp
SimonCropp deleted the inline-append-already-applied branch August 27, 2026 04:43
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