Skip to content

Commit fecc78f

Browse files
committed
Removed unnecessary changes.
1 parent 8af273c commit fecc78f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PowerShellEditorServices/Services/PowerShellContext/PowerShellContextService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace Microsoft.PowerShell.EditorServices.Services
2828
using System.Management.Automation;
2929
using Microsoft.PowerShell.EditorServices.Handlers;
3030
using Microsoft.PowerShell.EditorServices.Hosting;
31-
using Microsoft.PowerShell.EditorServices.Services.PowerShellContext;
31+
using Microsoft.PowerShell.EditorServices.Services.PowerShellContext;
3232

3333
/// <summary>
3434
/// Manages the lifetime and usage of a PowerShell session.
@@ -226,6 +226,7 @@ public static PowerShellContextService Create(
226226
powerShellContext.Initialize(hostStartupInfo.ProfilePaths, initialRunspace, true, hostUserInterface);
227227
// TODO: This can be moved to the point after the $psEditor object
228228
// gets initialized when that is done earlier than LanguageServer.Initialize
229+
// 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.
229230
if (hostStartupInfo.InitialSessionState.LanguageMode == PSLanguageMode.FullLanguage)
230231
{
231232
powerShellContext.ImportCommandsModuleAsync();

0 commit comments

Comments
 (0)