Skip to content

Commit 506d713

Browse files
committed
Fix for issue 129 - increase default dbg console to 120
I'll also update the MaxWindowSize and MaxPhysicalWindowSize (including height) to all be consistent with the initial default size. This is all we can do for now as we get no notifications from VSCode on console size changes.
1 parent 21c3025 commit 506d713

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/PowerShellEditorServices/Session/SessionPSHostRawUserInterface.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ internal class ConsoleServicePSHostRawUserInterface : PSHostRawUserInterface
1919
{
2020
#region Private Fields
2121

22-
private Size currentBufferSize = new Size(80, 100);
22+
private const int DefaultConsoleHeight = 100;
23+
private const int DefaultConsoleWidth = 120;
24+
25+
private Size currentBufferSize = new Size(DefaultConsoleWidth, DefaultConsoleHeight);
2326

2427
#endregion
2528

@@ -140,15 +143,15 @@ public override bool KeyAvailable
140143
/// </summary>
141144
public override Size MaxPhysicalWindowSize
142145
{
143-
get { return new Size(80, 20); }
146+
get { return new Size(DefaultConsoleWidth, DefaultConsoleHeight); }
144147
}
145148

146149
/// <summary>
147150
/// Gets the maximum size of the console window.
148151
/// </summary>
149152
public override Size MaxWindowSize
150153
{
151-
get { return new Size(80, 20); }
154+
get { return new Size(DefaultConsoleWidth, DefaultConsoleHeight); }
152155
}
153156

154157
/// <summary>

0 commit comments

Comments
 (0)