Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (18 sloc) 710 Bytes
using Microsoft.VisualStudio.Shell.Interop;
using System;
namespace CleanBinCommands.Services
{
public class VsOutputPaneService : IVsOutputPaneService
{
private readonly IVsOutputWindowPane generalOutputWindowPane;
public VsOutputPaneService(IVsOutputWindowPane generalOutputWindowPane)
{
this.generalOutputWindowPane = generalOutputWindowPane ?? throw new ArgumentNullException(nameof(generalOutputWindowPane));
}
public void WriteMessage(string message)
{
Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread();
this.generalOutputWindowPane.OutputStringThreadSafe("\r\n" + message);
}
}
}
You can’t perform that action at this time.