Exemplo n.º 1
0
 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);
     });
 }
Exemplo n.º 2
0
        public override void OnCommand(_DTE application, OutputWindowPane pane)
        {
            ThreadPool.QueueUserWorkItem(
                o =>
            {
                ThreadHelper.ThrowIfNotOnUIThread();

                string file = GitCommands.RunGitExWait("searchfile", application.Solution.FullName);

                if (string.IsNullOrEmpty(file?.Trim()))
                {
                    return;
                }

                application.ExecuteCommand("File.OpenFile", file);
            });
        }