From 08e957a39f0e0ff8b9a19ed9a561e2f572a9d8e3 Mon Sep 17 00:00:00 2001 From: isidor <inikolic@microsoft.com> Date: Mon, 31 Dec 2018 11:47:05 +0100 Subject: [PATCH] #65791 --- src/vs/workbench/parts/debug/electron-browser/repl.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/vs/workbench/parts/debug/electron-browser/repl.ts b/src/vs/workbench/parts/debug/electron-browser/repl.ts index 98bc5dc9d50..726551f3b95 100644 --- a/src/vs/workbench/parts/debug/electron-browser/repl.ts +++ b/src/vs/workbench/parts/debug/electron-browser/repl.ts @@ -214,9 +214,6 @@ export class Repl extends Panel implements IPrivateReplService, IHistoryNavigati } this.replInput.updateOptions({ readOnly: this.isReadonly }); - if (this.isReadonly) { - this.replInput.setValue(''); - } this.updateInputDecoration(); } @@ -462,7 +459,7 @@ export class Repl extends Panel implements IPrivateReplService, IHistoryNavigati } const decorations: IDecorationOptions[] = []; - if (this.isReadonly && this.replInput.hasTextFocus()) { + if (this.isReadonly && this.replInput.hasTextFocus() && !this.replInput.getValue()) { decorations.push({ range: { startLineNumber: 0,