Once the sugar has dissolved bring it to a gentle boil and cook, stirring often, until the vegetables are cooked but retain a little crunch. The mixture should be glossy and thick- a wooden spoon dragged across the bottom of the pan should make the ingredients part for a couple of seconds before coming back together.