formulahendry / formulahendry/vscode-code-runner

Fix code-runner.clearPrevious:true for terminal tab [Bug]

Open
#1,149 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

- VS Code Version: 1.89
- OS Version: Windows
- Code Runner Version: v0.12.2

**Describe the bug**
When the code runner setting is set to "clear pervious output", and for the first run when the terminal is closed it works fine the terminal has nice output but in subsequent runs the output is ugly because there is massive space and weirdly formatted text. So please fix this issue.

**To Reproduce**
Steps to reproduce the behavior:
1. Press the run button more than once and you should so the massive gaps and weirdly formatted text for any programming language.

**Actual behavior**
It introduces massive gap between the prompt and the output when you run the code more than once.

**Expected behavior**
It should show the output and should not have any spaces and gaps before the output.

**Screenshots**
For the first run:
![image](https://github.com/formulahendry/vscode-code-runner/assets/80376532/f8974e65-678c-4a69-9391-58288aa16508)

Subsequent runs:
![image](https://github.com/formulahendry/vscode-code-runner/assets/80376532/7384d8ae-866e-472c-98a7-d1669d86cc08)
![image](https://github.com/formulahendry/vscode-code-runner/assets/80376532/af26ab14-fe34-437f-ac8f-b6344f19566d)

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.