Skip to content

Commit c9b782f

Browse files
committed
Rename PSES InternalHost to PsesInternalHost
1 parent e9521ff commit c9b782f

File tree

15 files changed

+33
-33
lines changed

15 files changed

+33
-33
lines changed

src/PowerShellEditorServices/Server/PsesDebugServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public async Task StartAsync()
7676
{
7777
// We need to let the PowerShell Context Service know that we are in a debug session
7878
// so that it doesn't send the powerShell/startDebugger message.
79-
_debugContext = ServiceProvider.GetService<InternalHost>().DebugContext;
79+
_debugContext = ServiceProvider.GetService<PsesInternalHost>().DebugContext;
8080
_debugContext.IsDebugServerActive = true;
8181

8282
/*

src/PowerShellEditorServices/Server/PsesServiceCollectionExtensions.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ public static IServiceCollection AddPsesLanguageServices(
2828
.AddSingleton<HostStartupInfo>(hostStartupInfo)
2929
.AddSingleton<WorkspaceService>()
3030
.AddSingleton<SymbolsService>()
31-
.AddSingleton<InternalHost>()
31+
.AddSingleton<PsesInternalHost>()
3232
.AddSingleton<IRunspaceContext>(
33-
(provider) => provider.GetService<InternalHost>())
33+
(provider) => provider.GetService<PsesInternalHost>())
3434
.AddSingleton<PowerShellExecutionService>()
3535
.AddSingleton<ConfigurationService>()
3636
.AddSingleton<IPowerShellDebugContext>(
37-
(provider) => provider.GetService<InternalHost>().DebugContext)
37+
(provider) => provider.GetService<PsesInternalHost>().DebugContext)
3838
.AddSingleton<TemplateService>()
3939
.AddSingleton<EditorOperationsService>()
4040
.AddSingleton<RemoteFileManagerService>()
@@ -64,10 +64,10 @@ public static IServiceCollection AddPsesDebugServices(
6464
PsesDebugServer psesDebugServer,
6565
bool useTempSession)
6666
{
67-
InternalHost internalHost = languageServiceProvider.GetService<InternalHost>();
67+
PsesInternalHost internalHost = languageServiceProvider.GetService<PsesInternalHost>();
6868

6969
return collection
70-
.AddSingleton<InternalHost>(internalHost)
70+
.AddSingleton<PsesInternalHost>(internalHost)
7171
.AddSingleton<IRunspaceContext>(internalHost)
7272
.AddSingleton<IPowerShellDebugContext>(internalHost.DebugContext)
7373
.AddSingleton(languageServiceProvider.GetService<PowerShellExecutionService>())

src/PowerShellEditorServices/Services/DebugAdapter/BreakpointService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ internal class BreakpointService
2222

2323
private readonly ILogger<BreakpointService> _logger;
2424
private readonly PowerShellExecutionService _executionService;
25-
private readonly InternalHost _editorServicesHost;
25+
private readonly PsesInternalHost _editorServicesHost;
2626
private readonly DebugStateService _debugStateService;
2727

2828
// TODO: This needs to be managed per nested session
@@ -35,7 +35,7 @@ internal class BreakpointService
3535
public BreakpointService(
3636
ILoggerFactory factory,
3737
PowerShellExecutionService executionService,
38-
InternalHost editorServicesHost,
38+
PsesInternalHost editorServicesHost,
3939
DebugStateService debugStateService)
4040
{
4141
_logger = factory.CreateLogger<BreakpointService>();

src/PowerShellEditorServices/Services/DebugAdapter/DebugService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ internal class DebugService
3838
private readonly BreakpointService _breakpointService;
3939
private readonly RemoteFileManagerService remoteFileManager;
4040

41-
private readonly InternalHost _psesHost;
41+
private readonly PsesInternalHost _psesHost;
4242

4343
private readonly IPowerShellDebugContext _debugContext;
4444

@@ -108,7 +108,7 @@ public DebugService(
108108
IPowerShellDebugContext debugContext,
109109
RemoteFileManagerService remoteFileManager,
110110
BreakpointService breakpointService,
111-
InternalHost psesHost,
111+
PsesInternalHost psesHost,
112112
ILoggerFactory factory)
113113
{
114114
Validate.IsNotNull(nameof(executionService), executionService);

src/PowerShellEditorServices/Services/Extension/EditorOperationsService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ internal class EditorOperationsService : IEditorOperations
1616
{
1717
private const bool DefaultPreviewSetting = true;
1818

19-
private readonly InternalHost _psesHost;
19+
private readonly PsesInternalHost _psesHost;
2020
private readonly WorkspaceService _workspaceService;
2121

2222
private readonly ILanguageServerFacade _languageServer;
2323

2424
private readonly PowerShellExecutionService _executionService;
2525

2626
public EditorOperationsService(
27-
InternalHost psesHost,
27+
PsesInternalHost psesHost,
2828
WorkspaceService workspaceService,
2929
PowerShellExecutionService executionService,
3030
ILanguageServerFacade languageServer)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ internal class ConsoleReadLine : IReadLine
2121
{
2222
private readonly PSReadLineProxy _psrlProxy;
2323

24-
private readonly InternalHost _psesHost;
24+
private readonly PsesInternalHost _psesHost;
2525

2626
private readonly EngineIntrinsics _engineIntrinsics;
2727

2828
#region Constructors
2929

3030
public ConsoleReadLine(
3131
PSReadLineProxy psrlProxy,
32-
InternalHost psesHost,
32+
PsesInternalHost psesHost,
3333
EngineIntrinsics engineIntrinsics)
3434
{
3535
_psrlProxy = psrlProxy;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public bool IsDscResourcePath(string scriptPath)
8989
public static async Task<DscBreakpointCapability> GetDscCapabilityAsync(
9090
ILogger logger,
9191
IRunspaceInfo currentRunspace,
92-
InternalHost psesHost,
92+
PsesInternalHost psesHost,
9393
CancellationToken cancellationToken)
9494
{
9595
// DSC support is enabled only for Windows PowerShell.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ internal class PowerShellDebugContext : IPowerShellDebugContext
3838

3939
private readonly ILanguageServerFacade _languageServer;
4040

41-
private readonly InternalHost _psesHost;
41+
private readonly PsesInternalHost _psesHost;
4242

4343
public PowerShellDebugContext(
4444
ILoggerFactory loggerFactory,
4545
ILanguageServerFacade languageServer,
46-
InternalHost psesHost)
46+
PsesInternalHost psesHost)
4747
{
4848
_logger = loggerFactory.CreateLogger<PowerShellDebugContext>();
4949
_languageServer = languageServer;

src/PowerShellEditorServices/Services/PowerShell/Execution/SynchronousDelegateTask.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ internal class SynchronousPSDelegateTask : SynchronousTask<object>
7878

7979
private readonly string _representation;
8080

81-
private readonly InternalHost _psesHost;
81+
private readonly PsesInternalHost _psesHost;
8282

8383
public SynchronousPSDelegateTask(
8484
ILogger logger,
85-
InternalHost psesHost,
85+
PsesInternalHost psesHost,
8686
string representation,
8787
ExecutionOptions executionOptions,
8888
Action<SMA.PowerShell, CancellationToken> action,
@@ -115,11 +115,11 @@ internal class SynchronousPSDelegateTask<TResult> : SynchronousTask<TResult>
115115

116116
private readonly string _representation;
117117

118-
private readonly InternalHost _psesHost;
118+
private readonly PsesInternalHost _psesHost;
119119

120120
public SynchronousPSDelegateTask(
121121
ILogger logger,
122-
InternalHost psesHost,
122+
PsesInternalHost psesHost,
123123
string representation,
124124
ExecutionOptions executionOptions,
125125
Func<SMA.PowerShell, CancellationToken, TResult> func,

src/PowerShellEditorServices/Services/PowerShell/Execution/SynchronousPowerShellTask.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ internal class SynchronousPowerShellTask<TResult> : SynchronousTask<IReadOnlyLis
1515
{
1616
private readonly ILogger _logger;
1717

18-
private readonly InternalHost _psesHost;
18+
private readonly PsesInternalHost _psesHost;
1919

2020
private readonly PSCommand _psCommand;
2121

2222
private SMA.PowerShell _pwsh;
2323

2424
public SynchronousPowerShellTask(
2525
ILogger logger,
26-
InternalHost psesHost,
26+
PsesInternalHost psesHost,
2727
PSCommand command,
2828
PowerShellExecutionOptions executionOptions,
2929
CancellationToken cancellationToken)

0 commit comments

Comments
 (0)