0

I have a VS2010 VsPackage that implements an editor for a certain XML based file format.

Currently I'm displaying an error in case the file is read-only. I would like to check if the file is under source code control before editing and offer to check out the file or cancel the edit operation.

How can I do this from my extension package code?

MvdD
  • 22,082
  • 8
  • 65
  • 93

1 Answers1

0

Check out my answer here: Invoking standard "File changed outside Visual Studio" dialog

In particular, IVsQueryEditQuerySave2 may work for you.

Community
  • 1
  • 1
gameweld
  • 1,319
  • 15
  • 21