Skip to content

Commit aa263eb

Browse files
committed
Fix rebase issues
1 parent baf7a14 commit aa263eb

File tree

4 files changed

+6
-19
lines changed

4 files changed

+6
-19
lines changed

src/PowerShellEditorServices/Server/PsesServiceCollectionExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static IServiceCollection AddPsesLanguageServices(
4747
provider.GetService<EditorOperationsService>(),
4848
provider.GetService<PowerShellExecutionService>());
4949

50-
extensionService.InitializeAsync().GetAwaiter().GetResult();
50+
extensionService.InitializeAsync();
5151

5252
return extensionService;
5353
})

src/PowerShellEditorServices/Services/PowerShell/Console/PSReadLineProxy.cs

+1-14
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ internal class PSReadLineProxy
6262
param()
6363
end {{
6464
$module = Get-Module -ListAvailable PSReadLine |
65-
Where-Object {{ $_.Version -ge '2.0.2' }} |
65+
Where-Object {{ $_.Version -ge '2.2.1' }} |
6666
Sort-Object -Descending Version |
6767
Select-Object -First 1
6868
if (-not $module) {{
@@ -104,11 +104,6 @@ public PSReadLineProxy(
104104
new[] { typeof(Runspace), typeof(EngineIntrinsics), typeof(CancellationToken) })
105105
?.CreateDelegate(typeof(Func<Runspace, EngineIntrinsics, CancellationToken, string>));
106106

107-
ForcePSEventHandling = (Action)psConsoleReadLine.GetMethod(
108-
ForcePSEventHandlingMethodName,
109-
BindingFlags.Static | BindingFlags.NonPublic)
110-
?.CreateDelegate(typeof(Action));
111-
112107
AddToHistory = (Action<string>)psConsoleReadLine.GetMethod(
113108
AddToHistoryMethodName,
114109
s_addToHistoryTypes)
@@ -156,14 +151,6 @@ public PSReadLineProxy(
156151
AddToHistoryMethodName,
157152
_logger);
158153
}
159-
160-
if (ForcePSEventHandling == null)
161-
{
162-
throw NewInvalidPSReadLineVersionException(
163-
MethodMemberType,
164-
ForcePSEventHandlingMethodName,
165-
_logger);
166-
}
167154
}
168155

169156
internal Action<string> AddToHistory { get; }

src/PowerShellEditorServices/Services/PowerShell/Debugging/PowerShellDebugContext.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ internal class PowerShellDebugContext : IPowerShellDebugContext
1414
{
1515
private readonly ILogger _logger;
1616

17-
private readonly ILanguageServer _languageServer;
17+
private readonly ILanguageServerFacade _languageServer;
1818

1919
private readonly EditorServicesConsolePSHost _psesHost;
2020

2121
private readonly ConsoleReplRunner _consoleRepl;
2222

2323
public PowerShellDebugContext(
2424
ILoggerFactory loggerFactory,
25-
ILanguageServer languageServer,
25+
ILanguageServerFacade languageServer,
2626
EditorServicesConsolePSHost psesHost,
2727
ConsoleReplRunner consoleReplRunner)
2828
{
@@ -33,7 +33,7 @@ public PowerShellDebugContext(
3333
}
3434

3535
private CancellationTokenSource _debugLoopCancellationSource;
36-
36+
3737
public bool IsStopped { get; private set; }
3838

3939
public DscBreakpointCapability DscBreakpointCapability => throw new NotImplementedException();

src/PowerShellEditorServices/Services/PowerShell/Host/EditorServicesConsolePSHost.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ internal class EditorServicesConsolePSHost : PSHost, IHostSupportsInteractiveSes
4444

4545
public EditorServicesConsolePSHost(
4646
ILoggerFactory loggerFactory,
47-
ILanguageServer languageServer,
47+
ILanguageServerFacade languageServer,
4848
HostStartupInfo hostInfo)
4949
{
5050
_logger = loggerFactory.CreateLogger<EditorServicesConsolePSHost>();

0 commit comments

Comments
 (0)