DSC icon indicating copy to clipboard operation
DSC copied to clipboard

Enhance copy loop functionality by allowing `reference()` usage in copy mode

Open Gijsreyn opened this issue 1 month ago • 0 comments

PR Summary

Fixed copy loops to work with reference() function by preserving copy context during property evaluation. Modified copyIndex() and reference() to accept copy context outside Copy mode, and stored loop indices in resource tags during unrolling then restored them before evaluating properties. Tests added

PR Context

Fix #1286

Gijsreyn avatar Nov 25 '25 14:11 Gijsreyn