public static void EnsureCheckedOutIfExists(EnvDTEProject envDTEProject, string root, string path) { var fullPath = FileSystemUtility.GetFullPath(root, path); var dte = envDTEProject.DTE; if (dte != null) { DTESourceControlUtility.EnsureCheckedOutIfExists(dte.SourceControl, fullPath); } }
internal static void EnsureCheckedOutIfExists(EnvDTE.Project envDTEProject, string root, string path) { ThreadHelper.ThrowIfNotOnUIThread(); var fullPath = FileSystemUtility.GetFullPath(root, path); var dte = envDTEProject.DTE; if (dte != null) { DTESourceControlUtility.EnsureCheckedOutIfExists(dte.SourceControl, fullPath); } }