Somewhat related I was happily coding up a healthcare processing python script a few weeks ago. I was using Copilot to help speed up my work. One of the things I was doing was checking the race in the HL7 data. I had a map to different races/ethnicities. After adding this map, I couldn't get Copilot to help me ANYWHERE in the file. At all. No amount of waiting, or changing little bits to try to get copilot to create it's prompt was working. Finally I slowly undid my last few changes, and realized my copilot prompting was coming back.
I kept going back and forth and realized when my map of races/ethnicities was removed, I was able to get copilot usage.