Skip to content

Commit

Permalink
Remove PSReadLine history logging, Remove ConsoleHost history logging
Browse files Browse the repository at this point in the history
  • Loading branch information
cobbr committed Dec 18, 2017
1 parent 642a8fe commit fed7a54
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.PowerShell.PSReadLine/History.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class HistoryItem

private string MaybeAddToHistory(string result, List<EditItem> 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
Expand Down

0 comments on commit fed7a54

Please sign in to comment.