.net - VisualStudio extension develop:How to detect file is changed or How to detect file is dirty? -


I develop versus extension, now I should know that the document has changed or is dirty, then execute some operations .

You mention the specific event, but I suspect that this property or Algorithms may not actually be used in your extensions.


One way to do this (using the code running after the document change) is using the class. Your overridden ReParseImpl method will be called shortly after the change in the document (called "reparse delay", with behavior similar to the ' throttle method of reactive extension) .

Be sure to call OnParseComplete in your ReParseImpl method, as you see here:

Background Parser A The example is enabled and made by requesting an initial parse:


Comments