Skip to content

Test output has strange indentation when using \n as the EOL #124558

Closed

Description

@jdneo

Does this issue occur when all extensions are disabled?: Yes/No

Version: 1.57.0-insider (user setup)
Commit: 5319757
Date: 2021-05-24T05:14:19.500Z
Electron: 12.0.7
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Windows_NT x64 10.0.19043

Steps to Reproduce:

  1. Using the test-provider-sample project
  2. Update the method invocation of appendOutput(), use just \n as the EOL
  3. The output indentation looks strange. If using \r\n, it looks as expected

image

// cc Connor Peet (@connor4312)

Activity

  1. vscodebot commented on May 25, 2021

    @vscodebot

    (Experimental duplicate detection)
    Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

  2. connor4312 commented on May 25, 2021

    @connor4312
    Member

    The output is displayed as terminal output; \n only moves the cursor down a line, you want to use \r too in order to reset its position (\r\n)

  3. vscode-triage-bot commented on May 25, 2021

    @vscode-triage-bot

    The described behavior is how it is expected to work. If you disagree, please explain what is expected and what is not in more detail. See also our issue reporting guidelines.

    Happy Coding!

  4. locked and limited conversation to collaborators on Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*as-designedDescribed behavior is as designed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    ⌂ 换网址