@djry hello and welcome to my world.
You're weight lose was possibly a symptom of high untreated sugars. When I say untreated I don't mean by medication alone. Food, exercise and meds might be your way forward.
I'm overweight but touch wood no complications from very long term diabetes.
It helps what type you are to get the correct treatment for you.
Ultimately thou your pancras cannot supply your insulin demand properly. Different types determine why.
All diabetics have to be aware of what foods and how much helps cater for your bodies demands. Yes your dietician will make a start with you.
You have the task to make the changes. My advice is do food first now you have meds. Exercise will make you feel more control and help control naughty blood glucose circulating in your system. As we all get them.
Ps. Cravings are caused by carbs, reduce them and your cravings will stop. Good luck.