Commit f238305
Clear terminal input buffer before sending Aspire commands (#15863)
* Clear terminal input buffer before sending Aspire commands
Fixes #15587. When the user has pre-existing text in the Aspire terminal
input buffer, stop/restart/start commands get appended to it, making
the resulting command invalid.
Send a line-clearing control sequence (Ctrl+U on Unix, Escape on
Windows) before each command to discard any buffered input.
* Update extension/src/utils/AspireTerminalProvider.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Use platform-specific clear sequence: Escape on Windows, Ctrl+U on Unix
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent c726c3a commit f238305
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
100 | 109 | | |
101 | 110 | | |
102 | 111 | | |
| |||
0 commit comments