Пример #1
0
 private void WriteNpmOutput(object sender, NpmLogEventArgs e)
 {
     if (!string.IsNullOrWhiteSpace(e.LogText))
     {
         this.outputPane.WriteLine(e.LogText.TrimEnd('\r', '\n'));
     }
 }
Пример #2
0
        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
                    });
                }
            }
        }
Пример #3
0
 void controller_OutputLogged(object sender, NpmLogEventArgs e)
 {
     Debug.WriteLine(e.LogText);
 }
Пример #4
0
 private void NpmControllerOutputLogged(object sender, NpmLogEventArgs e)
 {
     Console.WriteLine("NPM: {0}", e.LogText);
 }
Пример #5
0
 private void NpmControllerErrorLogged(object sender, NpmLogEventArgs e)
 {
     Console.WriteLine("ERR: {0}", e.LogText);
 }
Пример #6
0
 public void LogError(object sender, NpmLogEventArgs e)
 {
     OnErrorLogged(e.LogText);
 }
Пример #7
0
 public void LogOutput(object sender, NpmLogEventArgs e)
 {
     OnOutputLogged(e.LogText);
 }
Пример #8
0
 private void command_ErrorLogged(object sender, NpmLogEventArgs e) {
     OnErrorLogged(e.LogText);
 }
Пример #9
0
 private void command_OutputLogged(object sender, NpmLogEventArgs e) {
     OnOutputLogged(e.LogText);
 }
Пример #10
0
 private void NpmController_OutputLogged(object sender, NpmLogEventArgs e)
 {
     WriteNpmLogToOutputWindow(e);
 }
Пример #11
0
 private void WriteNpmLogToOutputWindow(NpmLogEventArgs args)
 {
     WriteNpmLogToOutputWindow(TrimLastNewline(args.LogText));
 }
Пример #12
0
 internal void commander_OutputLogged(object sender, NpmLogEventArgs e)
 {
     Application.Current.Dispatcher.BeginInvoke(new Action(() => WriteLines(e.LogText, false)));
 }
 public void LogError(object sender, NpmLogEventArgs e) {
     OnErrorLogged(e.LogText);
 }
 public void LogOutput(object sender, NpmLogEventArgs e) {
     OnOutputLogged(e.LogText);
 }
Пример #15
0
 private void command_OutputLogged(object sender, NpmLogEventArgs e)
 {
     OnOutputLogged(e.LogText);
 }
Пример #16
0
 private void command_ErrorLogged(object sender, NpmLogEventArgs e)
 {
     OnErrorLogged(e.LogText);
 }