internal static void SaveItems(string[] fileNames) { if (!IsActive) { return; } TeamFoundationTrace.Verbose(VCTraceKeywordSets.SolutionIntegration, "VssProvider.SaveItems; fileNames={0}{1}", (object)fileNames, (object)string.Empty); HandleComReturn(GetProvider().SaveItems(fileNames)); }
internal static void RefreshProject(IVsHierarchy projectHierarchy) { if (!IsActive) { return; } TeamFoundationTrace.Verbose(VCTraceKeywordSets.SolutionIntegration, "VssProvider.RefreshProject starts"); HandleComReturn(GetProvider().RefreshProject(projectHierarchy)); TeamFoundationTrace.Verbose(VCTraceKeywordSets.SolutionIntegration, "VssProvider.RefreshProject ends"); }
internal static void RefreshGlyphs(string[] fileNames, bool immediate = false) { if (!IsActive) { return; } TeamFoundationTrace.Verbose(VCTraceKeywordSets.SolutionIntegration, "VssProvider.RefreshGlyphs starts; fileNames={0}{1}", (object)fileNames, (object)string.Empty); HandleComReturn(GetProvider().RefreshGlyphs(fileNames, immediate)); TeamFoundationTrace.Verbose(VCTraceKeywordSets.SolutionIntegration, "VssProvider.RefreshGlyphs ends"); }
internal static bool IsFolderPartOfSolution(string fullFolderPath) { var isPartOfSolution = false; if (IsActive) { HandleComReturn(GetProvider().IsFolderPartOfSolution(fullFolderPath, out isPartOfSolution)); TeamFoundationTrace.Verbose(VCTraceKeywordSets.SolutionIntegration, "VssProvider.IsFolderPartOfSolution; fullFolderPath={0} isControlled={1}", (object)fullFolderPath, (object)(isPartOfSolution ? 1 : 0)); } return(isPartOfSolution); }
internal static bool IsSolutionControlledByHatteras(string solutionFile) { var isControlled = false; if (IsActive) { HandleComReturn(GetProvider().IsSolutionControlledByHatteras(solutionFile, out isControlled)); TeamFoundationTrace.Verbose(VCTraceKeywordSets.SolutionIntegration, "VssProvider.IsSolutionControlledByHatteras; solutionFile={0} isControlled={1}", (object)solutionFile, (object)(isControlled ? 1 : 0)); } return(isControlled); }
internal static string[] GetExcludedItemsForProject(string projectFile) { string[] fileNames = null; if (IsActive) { TeamFoundationTrace.Verbose(VCTraceKeywordSets.SolutionIntegration, "VssProvider.GetExcludedItemsForProject starts; projectFile={0}", (object)projectFile); HandleComReturn(GetProvider().GetExcludedItemsForProject(projectFile, out fileNames)); TeamFoundationTrace.Verbose(VCTraceKeywordSets.SolutionIntegration, "VssProvider.GetExcludedItemsForProject ends; fileNames={0}{1}", (object)fileNames, (object)string.Empty); } return(fileNames ?? new string[0]); }
//internal static void RefreshStatus() //{ // if (!VssProvider.IsActive) // return; // TeamFoundationTrace.Info(VCTraceKeywordSets.SolutionIntegration, "VssProvider.RefreshStatus starts"); // SolutionManager.Instance.ClearAllStatusCaches(); // VssProvider.HandleComReturn(VssProvider.GetProvider().RefreshStatus()); // SolutionManager.Instance.RefreshStatusOfOpenedDocuments(); // TeamFoundationTrace.Info(VCTraceKeywordSets.SolutionIntegration, "VssProvider.RefreshStatus ends"); //} internal static void GetSelectedItemsList(VersionControlCommand command, out string[] fileNames) { fileNames = new string[0]; if (!IsActive) { return; } HandleComReturn(GetProvider().GetSelectedItemsList(command, out fileNames)); TeamFoundationTrace.Verbose(VCTraceKeywordSets.SolutionIntegration, "VssProvider.GetSelectedItemsList"); if (fileNames != null) { return; } fileNames = new string[0]; }