Visual Studio extension development, callback for detecting file deletion from solution explorer

有些话、适合烂在心里 提交于 2020-01-25 09:36:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!