This study is testing the effect of a new study medicine NNC0194-0499 in type 1 diabetes. The purpose of the study is to compare the effect of NNC0194-0499 on the blood sugar levels of participants with type 1 diabetes when taken in combination with semaglutide or placebo. All participants will receive standard of care insulin treatment. The study will last for about 36 weeks.