I have created VSPackage (using Visual Studio 2012, 4.5 .NET) that contains custom editor. I have used MPF to develop the package. Everything works fine except one thing: when I start debugging my editor does not change state to locked.
I would like to lock my editor when debugging (or run) starts and unlock when it finishes. I mean disable editing possibility similarly how it implemented in C# code editor (window) - it locks when debugging starts.
How can I accomplish that?