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?