Skip to content

Commit 994ebb3

Browse files
committed
Remove bracketed paste mode from sendText
This has to be optionally applied to fix microsoft#153592 properly, probably with new API and command args. Fixes microsoft#154863
1 parent 2e247a1 commit 994ebb3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/vs/workbench/contrib/terminal/browser/terminalInstance.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,12 +1487,6 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
14871487
}
14881488

14891489
async sendText(text: string, addNewLine: boolean): Promise<void> {
1490-
// Apply bracketed paste sequences if the terminal has the mode enabled, this will prevent
1491-
// the text from triggering keybindings https://github.com/microsoft/vscode/issues/153592
1492-
if (this.xterm?.raw.modes.bracketedPasteMode) {
1493-
text = `\x1b[200~${text}\x1b[201~`;
1494-
}
1495-
14961490
// Normalize line endings to 'enter' press.
14971491
text = text.replace(/\r?\n/g, '\r');
14981492
if (addNewLine && text[text.length - 1] !== '\r') {

0 commit comments

Comments
 (0)