we want to observe what RS features are used and for RS-Actions we do this by installing a logging IActionHandler on every UpdateableAction known to the IActionManager.
This worked for R#8 but since we upgraded to R#9 we had an unexpected problem:
Whenever we invoke the nextUpdate of an IExecutableAction, our handler isn't called for execution, even for actions that are clearly enabled (e.g. CodeCleanup).
Always returning true without invoking nextUpdate solves this issue but enables every IExecutableAction, which is obviously not what we want.
I've built a small extension to show this issue:
For simplification I just log every action for which our handler was called in C:\log.txt
This works for actions like TextControl but using CodeCleanup as an example we get no line in the log file.
However, when I comment out line 32 in MyCustomHandler.cs (nextUpdate.Invoke();) it works as described above.
This behaviour seems unexpected, especially since Update returns true anyways (even with invoking the next update).
Thanks in advance!