Skip to main content

Module ctx_edit

Module ctx_edit 

Source

Structs§

EditParams
Parameters for a file edit operation: path, old/new strings, and flags.

Enums§

CacheEffect
A cache mutation that an edit needs after its disk I/O completes.

Functions§

apply_cache_effect
Applies a deferred CacheEffect to the session cache.
handle
Performs a string replacement edit on a file with CRLF/LF and whitespace tolerance. Thin wrapper that runs the I/O and applies the resulting cache effect to cache in one shot (used by tests and any in-process caller that already holds the cache exclusively).
run_io
Performs the full edit on disk without touching the session cache, and reports back the CacheEffect the caller should apply afterwards.