diff options
| author | John Harrison <harjohn@google.com> | 2025-10-16 13:28:09 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-16 13:28:09 -0700 |
| commit | db530bf7aae448fe40f74352d83fcbd812c1caec (patch) | |
| tree | 0c0a0b0b883d7724f1ea085e02696c941c892511 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | 05e86001c1cb8e1744e50555f6d4c8d49ea204bf (diff) | |
| download | llvm-db530bf7aae448fe40f74352d83fcbd812c1caec.zip llvm-db530bf7aae448fe40f74352d83fcbd812c1caec.tar.gz llvm-db530bf7aae448fe40f74352d83fcbd812c1caec.tar.bz2 | |
[lldb-dap] Improve the runInTerminal ux. (#163830)
This updates lldb-dap to clear the screen when using `"console":
"integratedTerminal"` or `"console": "externalTerminal"`.
VSCode will reuse the same terminal for a given debug configuration.
After the process exits it will return to the shell but if the debug
session is launched again it will be invoked in the same terminal.
VSCode is sending the terminal the launch args as terminal input which
means the terminal would now have a string like `lldb-dap --comm-file
... --launch-target ...` and the scrollback buffer from any previous
output or shell commands used in the terminal.
To address this, I've updated LaunchRunInTerminalTarget to reset the
cursor, clear the screen and clear the scrollback buffer to soft 'reset'
the terminal prior to launching the process.
---------
Co-authored-by: Jonas Devlieghere <jonas@devlieghere.com>
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
