private void TryOutputString(string val) { if (ReplWindow != null) { if (val.StartsWith("[ERROR]")) { ReplWindow.WriteError(val); } else { ReplWindow.WriteOutput(val); } } if (OutputString != null) { OutputString(val); } }
/// <summary> /// Output string from debugger in VS output/REPL pane window /// </summary> /// <param name="output"></param> public void VsOutputString(string output) { if (ReplWindow != null) { if (output.StartsWith(PowerShellConstants.PowerShellOutputErrorTag)) { ReplWindow.WriteError(output); } else { ReplWindow.WriteOutput(output); } } if (OutputString != null) { OutputString(output); } }