private void WriteNpmOutput(object sender, NpmLogEventArgs e) { if (!string.IsNullOrWhiteSpace(e.LogText)) { this.outputPane.WriteLine(e.LogText.TrimEnd('\r', '\n')); } }
private void WriteNpmErrorsToErrorList(NpmLogEventArgs args) { var provider = GetErrorListProvider(); foreach (var line in args.LogText.Split(new[] { '\n' })) { var trimmed = line.Trim(); if (trimmed.StartsWith("npm ERR!")) { provider.Tasks.Add(new ErrorTask() { Category = TaskCategory.User, ErrorCategory = TaskErrorCategory.Error, Text = trimmed }); } else if (trimmed.StartsWith("npm WARN")) { provider.Tasks.Add(new ErrorTask() { Category = TaskCategory.User, ErrorCategory = TaskErrorCategory.Warning, Text = trimmed }); } } }
void controller_OutputLogged(object sender, NpmLogEventArgs e) { Debug.WriteLine(e.LogText); }
private void NpmControllerOutputLogged(object sender, NpmLogEventArgs e) { Console.WriteLine("NPM: {0}", e.LogText); }
private void NpmControllerErrorLogged(object sender, NpmLogEventArgs e) { Console.WriteLine("ERR: {0}", e.LogText); }
public void LogError(object sender, NpmLogEventArgs e) { OnErrorLogged(e.LogText); }
public void LogOutput(object sender, NpmLogEventArgs e) { OnOutputLogged(e.LogText); }
private void command_ErrorLogged(object sender, NpmLogEventArgs e) { OnErrorLogged(e.LogText); }
private void command_OutputLogged(object sender, NpmLogEventArgs e) { OnOutputLogged(e.LogText); }
private void NpmController_OutputLogged(object sender, NpmLogEventArgs e) { WriteNpmLogToOutputWindow(e); }
private void WriteNpmLogToOutputWindow(NpmLogEventArgs args) { WriteNpmLogToOutputWindow(TrimLastNewline(args.LogText)); }
internal void commander_OutputLogged(object sender, NpmLogEventArgs e) { Application.Current.Dispatcher.BeginInvoke(new Action(() => WriteLines(e.LogText, false))); }