Skip to content

PowerShell debug console doesn't word wrap correctly #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
codemonkeychris opened this issue Nov 18, 2015 · 11 comments
Closed

PowerShell debug console doesn't word wrap correctly #7

codemonkeychris opened this issue Nov 18, 2015 · 11 comments
Labels
Feature: VS Code Request to use or implement a VS Code feature.
Milestone

Comments

@codemonkeychris
Copy link

If you issue a command line "gci", the terminal output is word wrapped to a very narrow window, instead of occupying the full space available. If you resize the window, the output doesn't adjust.

@daviwil daviwil added the Feature: VS Code Request to use or implement a VS Code feature. label Nov 18, 2015
@daviwil
Copy link
Contributor

daviwil commented Nov 18, 2015

Yep, I've been talking to the VS Code team about this, hopefully we'll get some improvements for long output lines in the next release.

@daviwil
Copy link
Contributor

daviwil commented Nov 19, 2015

Tracked in the VS Code repo with this issue:

microsoft/vscode#255

@kliemohn
Copy link

This issue is really important. It makes VS Code almost unusable for PowerShell use in my opinion.

@daviwil
Copy link
Contributor

daviwil commented Nov 26, 2015

I agree, it makes the console pretty useless when you can't see multi-line output from a command. Hopefully the VS Code team will get this fixed for their next release.

@daviwil daviwil added this to the 0.4.0 milestone Feb 3, 2016
@daviwil
Copy link
Contributor

daviwil commented Feb 3, 2016

Hi guys, this situation should improve a lot in the upcoming 0.10.7 and 0.4.0 releases of VS Code and the PowerShell extension. Once those are out I'll comment back here so you can go try it out and let me know what you think.

@rkeithhill
Copy link
Contributor

It is definitely better but the output seems to be wrapping at column 80 and my Debug Console window is much wider than that.

    Directory: C:\Users\Keith\GitHub\rkeithhill\PowerShellEditorServices\src\Po
    werShellEditorServices.Host\bin\Debug


Mode                LastWriteTime         Length Name                          
----                -------------         ------ ----                          
               2/2/2016  10:46 PM         114427 DebugAdapter.log              
               2/2/2016  10:35 PM        1101753 EditorServices.log            
-a----         2/2/2016  10:35 PM         118272 Microsoft.PowerShell.EditorSer
                                                 vices.dll 

If we can't detect the column width of the output window perhaps we make this a debug setting the user can set in their preferences (I would default it to 120). Then we run output through something like Out-String -Width <n>.

@daviwil
Copy link
Contributor

daviwil commented Feb 3, 2016

That's a great point actually, we should add a config setting for that. In the meantime I'll increase the width of the virtual console. What would be a good default width, 100? 120?

@daviwil
Copy link
Contributor

daviwil commented Feb 3, 2016

Filed an issue for the configuration setting here: #80

@daviwil
Copy link
Contributor

daviwil commented Feb 3, 2016

Also created this issue for increasing the default console width: PowerShell/PowerShellEditorServices#129

@rkeithhill
Copy link
Contributor

Given the horizontal debug window in 0.10.7, I suggest 120.

@daviwil
Copy link
Contributor

daviwil commented Feb 5, 2016

Keith has fixed this in PowerShell Editor Services, you should have better output wrapping in the 0.4.0 release next week!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: VS Code Request to use or implement a VS Code feature.
Projects
None yet
Development

No branches or pull requests

4 participants