Skip to content

Revert "Use bracketed paste for multiline executed terminal text (#302526)"#304134

Merged
meganrogge merged 2 commits intomainfrom
megan/revert-pr-302526
Mar 23, 2026
Merged

Revert "Use bracketed paste for multiline executed terminal text (#302526)"#304134
meganrogge merged 2 commits intomainfrom
megan/revert-pr-302526

Conversation

@meganrogge
Copy link
Copy Markdown
Collaborator

@meganrogge meganrogge commented Mar 23, 2026

This reverts commit 58757c0.

We need a more focused fix to avoid issues like #303665, targeting only the runInTerminal invocations of sendText.

cc @jcansdale

Copilot AI review requested due to automatic review settings March 23, 2026 16:11
@meganrogge meganrogge self-assigned this Mar 23, 2026
@meganrogge meganrogge added this to the 1.113.0 milestone Mar 23, 2026
@meganrogge meganrogge enabled auto-merge (squash) March 23, 2026 16:11
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reverts the earlier change that automatically wrapped any sendText containing \r/\n in bracketed paste mode, due to a regression impacting workbench.action.terminal.sendSequence (eg sending \u000D to simulate Enter in Git Bash).

Changes:

  • Restore TerminalInstance.sendText to only apply bracketed paste when explicitly requested via the bracketedPasteMode argument.
  • Update TerminalInstance browser tests to reflect the revert (including removal of tests added with the reverted change).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/vs/workbench/contrib/terminal/browser/terminalInstance.ts Stops auto-enabling bracketed paste for any text containing \r/\n; only wraps when explicitly requested.
src/vs/workbench/contrib/terminal/test/browser/terminalInstance.test.ts Adjusts the TerminalInstance env test setup/waiting logic and removes bracketed-paste-related test coverage.

@meganrogge meganrogge merged commit 072e113 into main Mar 23, 2026
19 checks passed
@meganrogge meganrogge deleted the megan/revert-pr-302526 branch March 23, 2026 16:31
@meganrogge meganrogge modified the milestones: 1.113.0, 1.114.0 Mar 23, 2026
meganrogge added a commit that referenced this pull request Mar 23, 2026
…2526)"  (#304164)

Revert "Use bracketed paste for multiline executed terminal text (#302526)" (#304134)

This reverts commit 58757c0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants