Esempio n. 1
0
 internal void commander_OutputLogged(object sender, NpmLogEventArgs e) {
     Application.Current.Dispatcher.BeginInvoke(new Action(() => WriteLines(e.LogText, false)));
 }
 void controller_OutputLogged(object sender, NpmLogEventArgs e) {
     Debug.WriteLine(e.LogText);
 }
Esempio n. 3
0
 private void NpmController_OutputLogged(object sender, NpmLogEventArgs e) {
     WriteNpmLogToOutputWindow(e);
 }
Esempio n. 4
0
 private void WriteNpmLogToOutputWindow(NpmLogEventArgs args) {
     WriteNpmLogToOutputWindow(TrimLastNewline(args.LogText));
 }
Esempio n. 5
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
             });
         }
     }
 }
 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);
 }