From a999d546c99add3adc3ba1d199a6dada2e963859 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Tue, 13 Aug 2019 00:38:20 -0700 Subject: [PATCH] Fix pasting in Windows to Linux remote (#78998) This reverts back to the previous behavior Fixes #78981 --- .../workbench/contrib/terminal/browser/terminalInstance.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts b/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts index 31cdb6fb01b3b..d988138998a0f 100644 --- a/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts +++ b/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts @@ -871,7 +871,11 @@ export class TerminalInstance implements ITerminalInstance { public async paste(): Promise { this.focus(); - this._xterm._core._coreService.triggerDataEvent(await this._clipboardService.readText(), true); + if (platform.isWeb) { + this._xterm._core._coreService.triggerDataEvent(await this._clipboardService.readText(), true); + } else { + document.execCommand('paste'); + } } public write(text: string): void {