How do I subscribe to the DocumentSaved event, so I can run my code whenever a document is saved?
I tried hooking into the standard Visual Studio events using:
var dte = Shell.Instance.GetComponent<DTE>();
dte.Events.DocumentEvents.DocumentSaved += this.DocumentEventsOnDocumentSaved;
This code works, if the project is set to .NET 3.5.
However the DocumentSaved event is never raised. I assume this is either a bug in Visual Studio or Resharper traps it.
Is there a similar event in Resharper?