Skip to content

Integrated terminal: workbench.action.terminal.sendSequence no longer simulates Enter with \u000D in Git Bash #303665

@kh4f

Description

@kh4f

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.113.0-insider (c99f810 2026-03-20T09:51:41-07:00)
  • OS Version: Windows 11 10.0.26200

Hi. Thanks to @jcansdale for PR #302526. It fixed a real multiline execution problem, but it also introduced a regression for workbench.action.terminal.sendSequence.

Problem

The workbench.action.terminal.sendSequence command can no longer simulate Enter by sending \u000D, because any occurrence of \r or \n now triggers automatic bracketed paste wrapping.
This appears to regress the documented behavior:

sendSequence can be used to send Arrow keys, Enter, cursor moves, and more.

Repro

Bind a key to send \u000D to the integrated terminal:

{
	"key": "ctrl+enter",
	"command": "workbench.action.terminal.sendSequence",
	"args": { "text": "echo 123\u000D" },
	"when": "editorFocus"
},

Pressing the key no longer behaves like Enter in Git Bash. Instead of executing the current command line, it moves to a new line / behaves as pasted input.

Proposed fix

#303666

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions