fn ApplyDeltaChanges(
Lines: &[String],
EOL: &str,
RPCChange: &[RPCModelContentChangeDTO],
) -> Vec<String>Expand description
Applies delta changes to the document text and returns the updated lines.
This function:
- Sorts changes in reverse order (by start position) to prevent offset corruption
- Converts line/column positions to byte offsets in the full text
- Applies each change (delete range + insert new text)
- Splits the result back into lines
§Arguments
Lines- The current document linesEOL- The end-of-line sequence to useRPCChange- Array of changes to apply
§Returns
Updated lines vector after applying all changes