vscode-code-runner icon indicating copy to clipboard operation
vscode-code-runner copied to clipboard

[Bug]Cannot clear Java previous output before run

Open emptylight370 opened this issue 2 years ago • 0 comments

  • VS Code Version: 1.80.1
  • OS Version: Windows 11 23h2 22631.2048(beta)
  • Code Runner Version: 0.12.0

Describe the bug When running Java code with Code Runner, the previous output in Terminal cannot be cleared by Code Runner settings. It just shows up as a transparent character, but is actually still in the Terminal and reappears in special cases. When I add the cls command for Java in the Code Runner settings, the cd command in the terminal disappears as well.

To Reproduce Steps to reproduce the behavior:

  1. Write a .java file and run with Code Runner
  2. Then run it again and see the Terminal

Actual behavior It just hide the previous output as a transparent character, they're still there.

Expected behavior Clear the previous output as other language do, like c or cpp.

Screenshots If applicable, add screenshots to help explain your problem. image run the second time image run the third time

emptylight370 avatar Jul 16 '23 04:07 emptylight370