Skip to content

Commit e4946a8

Browse files
Add missing PSHostUserInterface implementations
1 parent f3d4bf2 commit e4946a8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,21 @@ public override void WriteWarningLine(string message)
132132
_underlyingHostUI.WriteWarningLine(message);
133133
}
134134

135+
public override void WriteLine()
136+
{
137+
_underlyingHostUI.WriteLine();
138+
}
139+
140+
public override void WriteInformation(InformationRecord record)
141+
{
142+
_underlyingHostUI.WriteInformation(record);
143+
}
144+
145+
public override void WriteLine(ConsoleColor foregroundColor, ConsoleColor backgroundColor, string value)
146+
{
147+
_underlyingHostUI.WriteLine(foregroundColor, backgroundColor, value);
148+
}
149+
135150
private static PSHostUserInterface GetConsoleHostUI(PSHostUserInterface ui)
136151
{
137152
FieldInfo externalUIField = ui.GetType().GetField("_externalUI", BindingFlags.NonPublic | BindingFlags.Instance);

0 commit comments

Comments
 (0)