/// <summary>
 /// Write text to the Debug VS Output window pane directly. This is used to write information before the session create event.
 /// </summary>
 /// <param name="outputMessage"></param>
 public static void WriteLaunchError(string outputMessage)
 {
     try
     {
         VsImpl.SetText(outputMessage);
     }
     catch (Exception)
     {
     }
 }
Ejemplo n.º 2
0
        public static async System.Threading.Tasks.Task WriteLineLaunchErrorAsync(string outputMessage)
        {
            try
            {
                await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();

                VsImpl.SetText(outputMessage + Environment.NewLine);
            }
            catch (Exception ex)
            {
                NLogService.Logger.Error(ex);
            }
        }