Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 SDK Scan Source files in project

I'm working with the 2010 SDK and I am trying to figure out how to tie into VS in someway that I have a background process running that is constantly analyzing .CS files in the current project and adding them to a dictionary so I can show some graphical cues in the editor of a custom text document that I have.

I have been doing quite a lot of research here: http://msdn.microsoft.com/en-us/library/bb166441.aspx

But i cant seem to find a way to "Hook" into VS ...sort of an entry point so this service can run in the background while the project is open.

So far I have an Editor Classifier Project that I have done some modifications to the editor with...how can I monitor files in the background?

like image 735
Chris Kooken Avatar asked Feb 12 '26 22:02

Chris Kooken


1 Answers

You can implement the IVsTrackProjectDocumentsEvents2 interface to listen to project events such as adding a file to a project.

OnAfterAddFilesEx, OnAfterRemoveFiles, and OnAfterRenameFiles are the methods you'll be interested in.

like image 126
jaws Avatar answered Feb 16 '26 13:02

jaws



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!