问题
I'm making a Visual studio extension, where something happens when a file is saved and when it is deleted. I can detect when the current file is about to be saved using IVsRunningDocTableEvents3
I was trying to find a callback for when a file is deleted from the solution explorer window. I've tried searching for it in the VS sdk 2017 but its really tough to search.
Any help will be appreciated. thanks.
回答1:
You can use IVsTrackProjectDocuments2.AdviseTrackProjectDocumentsEvents to listen when a file is deleted.
来源:https://stackoverflow.com/questions/59257869/visual-studio-extension-development-callback-for-detecting-file-deletion-from-s