public override void OnCommand(EnvDTE80.DTE2 application, OutputWindowPane pane) { ThreadPool.QueueUserWorkItem( o => { string file = GitCommands.RunGitExWait("searchfile", application.Solution.FullName); if (file == null || string.IsNullOrEmpty(file.Trim())) return; application.ExecuteCommand("File.OpenFile", file); }); }
public static bool CannotDebug(EnvDTE80.DTE2 app, CacheTestMessage test) { lock (_dirtyRealtimeDocuments) { clearOutdatedRealtimeChanges(""); var inRealtime = _dirtyRealtimeDocuments.Count != 0; if (inRealtime) { _client.PauseEngine(); System.Threading.Thread.Sleep(1000); app.ExecuteCommand("File.SaveAll"); _client.ResumeEngine(); } } return false; }
void SyncWithActiveDocument(EnvDTE80.DTE2 dte) { dte.ExecuteCommand("SolutionExplorer.SyncWithActiveDocument"); }