From fed7a542da3346c0f686157990e0c8a954b108c8 Mon Sep 17 00:00:00 2001 From: cobbr Date: Sun, 17 Dec 2017 23:56:16 -0800 Subject: [PATCH] Remove PSReadLine history logging, Remove ConsoleHost history logging --- src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHost.cs | 4 ---- src/Microsoft.PowerShell.PSReadLine/History.cs | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHost.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHost.cs index 060fa942b56..b1646c6b698 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHost.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHost.cs @@ -248,10 +248,6 @@ internal static int Start( // Send startup telemetry for ConsoleHost startup ApplicationInsightsTelemetry.SendPSCoreStartupTelemetry(); - ClrFacade.StartProfileOptimization( - s_theConsoleHost.LoadPSReadline() - ? "StartupProfileData-Interactive" - : "StartupProfileData-NonInteractive"); exitCode = s_theConsoleHost.Run(s_cpp, false); } } diff --git a/src/Microsoft.PowerShell.PSReadLine/History.cs b/src/Microsoft.PowerShell.PSReadLine/History.cs index 0b77feb70f5..ba2e2e27387 100644 --- a/src/Microsoft.PowerShell.PSReadLine/History.cs +++ b/src/Microsoft.PowerShell.PSReadLine/History.cs @@ -47,7 +47,7 @@ class HistoryItem private string MaybeAddToHistory(string result, List edits, int undoEditIndex, bool readingHistoryFile, bool fromDifferentSession) { - bool addToHistory = !string.IsNullOrWhiteSpace(result) && ((Options.AddToHistoryHandler == null) || Options.AddToHistoryHandler(result)); + bool addToHistory = false; if (addToHistory) { _history.Enqueue(new HistoryItem