Skip to content

Commit 644e9ab

Browse files
committed
Removed unnecessary changes.
1 parent 4d09307 commit 644e9ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PowerShellEditorServices/Services/PowerShellContext/PowerShellContextService.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Microsoft.PowerShell.EditorServices.Services
2424
using System.Management.Automation;
2525
using Microsoft.PowerShell.EditorServices.Handlers;
2626
using Microsoft.PowerShell.EditorServices.Hosting;
27-
using Microsoft.PowerShell.EditorServices.Services.PowerShellContext;
27+
using Microsoft.PowerShell.EditorServices.Services.PowerShellContext;
2828

2929
/// <summary>
3030
/// Manages the lifetime and usage of a PowerShell session.
@@ -222,6 +222,7 @@ public static PowerShellContextService Create(
222222
powerShellContext.Initialize(hostStartupInfo.ProfilePaths, initialRunspace, true, hostUserInterface);
223223
// TODO: This can be moved to the point after the $psEditor object
224224
// gets initialized when that is done earlier than LanguageServer.Initialize
225+
// Darren Kattan: I haven't tested it, but I have a feeling this entire bit of logic can be replaced with the bit above for non-FullLanguage mode. I think that was is cleaner anyway.
225226
if (hostStartupInfo.InitialSessionState.LanguageMode == PSLanguageMode.FullLanguage)
226227
{
227228
powerShellContext.ImportCommandsModuleAsync();

0 commit comments

Comments
 (0)