Skip to content

[Tasks 2.0.0] Wrapping output in terminal when Panel is hidden #22328

Closed

Description

Hi,

  • VSCode Version: 1.10.2
  • OS Version: macOS Sierra

when I run my "test" task in terminal and Panel is hidden, then the output in the terminal is wrapped, it looks like this (new line after 80 chars):

Chrome 56.0.2924 (Mac OS X 10.12.3): Executed 1 of 6546 (skipped 6545) SUCCESS (
2.99 secs / 0.015 secs)

But when I run the task with opened Panel, then the output is as it should be - non-wrapped. It looks like this:

Chrome 56.0.2924 (Mac OS X 10.12.3): Executed 1 of 6546 (skipped 6545) SUCCESS (3.122 secs / 0.018 secs)

It would be just a styling issue, but the bigger problem is, that if one has a custom problemMatcher which normally matches one line and it is wrapped by hidden Panel, then the matcher never finishes and no other task can be run (and "slashes" indicator //is the bottom left of the Code is spinning and spinning and ...). Once it also crashed whole Code.

My problemMatcher to matching problems generated by Chrome when running JS tests by Karma runner:

"problemMatcher": {
    "fileLocation": "absolute",
    "pattern": [
        {
            "regexp": "(Expected.+\\.)$",
            "message": 1
        },
        {
            "regexp": "\\s+at\\s+.+\\s+\\((.+\\.js):(\\d+):(\\d+)\\)$",
            "file": 1,
            "line": 2,
            "column": 3
        }
    ]
}

Thanks.

Activity

  1. changed the title [-][Tasks 2.0.0] Collapsing output in terminal when Panel is hidden[/-] [+][Tasks 2.0.0] Wrapping output in terminal when Panel is hidden[/+] on Mar 9, 2017
  2. added
    terminal
    on Mar 10, 2017
  3. dbaeumer commented on Mar 10, 2017

    @dbaeumer
    Member

    Daniel Imms (@Tyriar) can you please have a look. Is this something I need to control ?

  4. added
    bug
    on Mar 10, 2017
  5. Tyriar commented on Mar 10, 2017

    @Tyriar
    Contributor

    This is on my side, the issue is that initial terminal dimensions are only fetched on a per-terminal basis and if the terminal is hidden it won't work so the default is used (80).

  6. Tyriar commented on Mar 10, 2017

    @Tyriar
    Contributor

    I pushed a fix for this that should fix the size when the panel is minimized or the terminal instance is in the background (provided the panel has been created). I tested via the terminal API:

    1. Open terminal panel

    2. Run following API code:

      const term = vscode.window.createTerminal(`term`);
      term.sendText("ls");
    3. Switch to terminal and verify that ls output is formatted to full panel width

    Dirk Bäumer (@dbaeumer) could you verify this with a task?

  7. roblourens commented on Mar 30, 2017

    @roblourens
    Member

    This looks the same to me on stable vs insiders. ls wraps to two columns when the terminal is hidden. If i run the same command with the terminal visible, it wraps to five columns.

  8. dbaeumer commented on Apr 13, 2017

    @dbaeumer
    Member

    This works for me under Windows. See:

    cast

  9. locked and limited conversation to collaborators on Nov 18, 2017
  10. added a commit that references this issue on Sep 6, 2026
    478a121
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugtasksterminalverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions