Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions extension/src/utils/AspireTerminalProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ export class AspireTerminalProvider implements vscode.Disposable {

const aspireTerminal = this.getAspireTerminal();
extensionLogOutputChannel.info(`Sending command to Aspire terminal: ${command}`);

// Clear any pre-existing text in the terminal input buffer before sending the command.
// Use Ctrl+U to clear the current line without sending an ESC prefix that can alter
Comment thread
adamint marked this conversation as resolved.
Outdated
// how the following command text is interpreted by Windows line editors.
const clearSequence = '\x15';
aspireTerminal.terminal.sendText(clearSequence, false);

aspireTerminal.terminal.sendText(command);
Comment thread
adamint marked this conversation as resolved.
if (showTerminal) {
aspireTerminal.terminal.show();
Expand Down
Loading