I need to measure the time I spend in break mode debugging my Projects. So I came up with the idea to write a custom VS extension which binds to the OnEnterBreakMode & OnEnterRunMode debugging events.
This works just fine, but I need to make sure my extension is loaded right at the startup of VS. Otherwise, the extension might not be loaded when I am already debugging.
Unfortunately Visual Studio 2019 heavily forces the user to use the AsyncPackage base class and set the BackgroundLoadingFlag. On default VS deactivates extensions which use the deprecated API, which allows synchronously loading extensions on startup.
Do you have any tips or workarounds on how I can make sure that my extension was loaded when I start debugging?