Skip to content

Commit cdf1ed4

Browse files
committed
Corrected build issues. Removed ConsoleProxy. Reverted changes to EditorServicesLoader
1 parent f4d015f commit cdf1ed4

File tree

4 files changed

+2
-162
lines changed

4 files changed

+2
-162
lines changed

src/PowerShellEditorServices.Hosting/EditorServicesLoader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public static EditorServicesLoader Create(
103103
// We only want the Editor Services DLL; the new ALC will lazily load its dependencies automatically
104104
if (!string.Equals(asmName.Name, "Microsoft.PowerShell.EditorServices", StringComparison.Ordinal))
105105
{
106-
//return null;
106+
return null;
107107
}
108108

109109
string asmPath = Path.Combine(s_psesDependencyDirPath, $"{asmName.Name}.dll");

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

Lines changed: 0 additions & 154 deletions
This file was deleted.

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ public EditorServicesConsolePSHostUserInterface(
3535
_readLineProvider = readLineProvider;
3636
_underlyingHostUI = underlyingHostUI;
3737
RawUI = new EditorServicesConsolePSHostRawUserInterface(loggerFactory, underlyingHostUI.RawUI, consoleOperations);
38-
39-
_consoleHostUI = GetConsoleHostUI(_underlyingHostUI);
40-
41-
if (_consoleHostUI != null)
42-
{
43-
SetConsoleHostUIToInteractive(_consoleHostUI);
44-
}
4538
}
4639

4740
public override bool SupportsVirtualTerminal => _underlyingHostUI.SupportsVirtualTerminal;

test/PowerShellEditorServices.Test/PsesHostFactory.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public static PsesInternalHost Create(ILoggerFactory loggerFactory)
5757
logLevel: (int)LogLevel.None,
5858
consoleReplEnabled: false,
5959
usesLegacyReadLine: false,
60+
useHostReadKey: false,
6061
bundledModulePath: BundledModulePath);
6162

6263
PsesInternalHost psesHost = new(loggerFactory, null, testHostDetails);

0 commit comments

Comments
 (0)