When a program is copied, component code correctly updates variable references. But the custom code does not. I expected it to after #187. That issue took care of component renaming, but I still see this bit in the copy implementation:
/**
* Copies the custom code from the provided program to this program. For now, we just copy every string and
* leave it up to the user to update variable name references.
*/
copyCustomCodeFromOther( programJSON ) {
this.customCodeContainer.copyFromOther( programJSON.customCodeContainer );
}
When a program is copied, component code correctly updates variable references. But the custom code does not. I expected it to after #187. That issue took care of component renaming, but I still see this bit in the copy implementation:
Lets handle this part too.