formulahendry / formulahendry/vscode-code-runner

Is there a reason for the trailing newline in the Output panel?

Open
#964 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
351
PR merge metrics
No merged PRs in 30d

Description

Why add a trailing newline after the Code Runner footer? It just seems to take up space. For example, if the contents of the Output panel overflow, the blank line will always be shown and never the first line. That's OK if it's just the Code Runner header that's hidden, but if I need to make sure I didn't miss any output from my code, then I need to scroll up or resize the panel.

![Screenshot showing some output covered up](https://user-images.githubusercontent.com/22385371/182494262-731d8815-b52e-4bb0-a3d5-ccdcaffe3c99.png)

So why don't we get rid of the extra blank line?

---

Here's the code that does it:

https://github.com/formulahendry/vscode-code-runner/blob/de0dc89a442b37c4f90cdb66d7ad4bf8da949564/src/codeManager.ts#L493

---

BTW, Code Runner also adds a trailing newline after the command output, which I'm totally fine with. That makes sense in case the command didn't add a trailing newline itself.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.