Carsten,
Welcome to the forums!
I have seen a couple scenarios where CCS will lose context.
Are you talking about the case where it will stop highlighting the active project in the project explorer? i.e. in the first capture below it has the context but in the second it does not.
In this particular case the active project is not highlighted in the second capture as the source file I have selected is not part of any project I have open.
I have also seen the debug view lose context before as well.
What is the error message that you are getting?
Regards,
John