Skip to content

Commit 58b8534

Browse files
committed
Fix issue where native apps throw errors when session transcription enabled
Resolves PowerShell#396 Resolves PowerShell/vscode-powershell#972
1 parent 045835d commit 58b8534

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/PowerShellEditorServices/Session/Host/SimplePSHostRawUserInterface.cs

+1-5
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,7 @@ public override void FlushInputBuffer()
176176
/// <returns>A BufferCell array with the requested buffer contents.</returns>
177177
public override BufferCell[,] GetBufferContents(Rectangle rectangle)
178178
{
179-
Logger.Write(
180-
LogLevel.Warning,
181-
"PSHostRawUserInterface.GetBufferContents was called");
182-
183-
throw new System.NotImplementedException();
179+
return new BufferCell[0,0];
184180
}
185181

186182
/// <summary>

src/PowerShellEditorServices/Session/Host/TerminalPSHostRawUserInterface.cs

+1-5
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,7 @@ public override void FlushInputBuffer()
208208
/// <returns>A BufferCell array with the requested buffer contents.</returns>
209209
public override BufferCell[,] GetBufferContents(Rectangle rectangle)
210210
{
211-
Logger.Write(
212-
LogLevel.Warning,
213-
"PSHostRawUserInterface.GetBufferContents was called");
214-
215-
throw new System.NotImplementedException();
211+
return new BufferCell[0,0];
216212
}
217213

218214
/// <summary>

0 commit comments

Comments
 (0)