From 548cbc91b1168ba53a2148f0aa6641b7d1abf103 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Thu, 17 Dec 2015 16:08:24 -0800 Subject: [PATCH] Bring back InitialSessionState() --- src/Microsoft.PowerShell.Linux.Host/main.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Microsoft.PowerShell.Linux.Host/main.cs b/src/Microsoft.PowerShell.Linux.Host/main.cs index b562d2b45..4776f1c45 100644 --- a/src/Microsoft.PowerShell.Linux.Host/main.cs +++ b/src/Microsoft.PowerShell.Linux.Host/main.cs @@ -152,9 +152,8 @@ namespace Microsoft.PowerShell.Linux.Host // Note that this application does not support console files so // only the default snap-ins will be available. this.myHost = new MyHost(this); - // InitialSessionState iss = InitialSessionState.CreateDefault2(); - // TODO: CreateRunspace(this.myHost, iss) - this.myRunSpace = RunspaceFactory.CreateRunspace(this.myHost); + InitialSessionState iss = InitialSessionState.CreateDefault2(); + this.myRunSpace = RunspaceFactory.CreateRunspace(this.myHost, iss); this.myRunSpace.Open(); // Create a PowerShell object to run the commands used to create