From 637bbbe48d8b2229597fe22bd1700a1c6511e0cd Mon Sep 17 00:00:00 2001 From: isidor Date: Mon, 31 Dec 2018 11:38:17 +0100 Subject: [PATCH] debug: clear repl when there is no session fixes #65791 --- src/vs/workbench/parts/debug/electron-browser/repl.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vs/workbench/parts/debug/electron-browser/repl.ts b/src/vs/workbench/parts/debug/electron-browser/repl.ts index da6c7fd507c..98bc5dc9d50 100644 --- a/src/vs/workbench/parts/debug/electron-browser/repl.ts +++ b/src/vs/workbench/parts/debug/electron-browser/repl.ts @@ -214,6 +214,9 @@ export class Repl extends Panel implements IPrivateReplService, IHistoryNavigati } this.replInput.updateOptions({ readOnly: this.isReadonly }); + if (this.isReadonly) { + this.replInput.setValue(''); + } this.updateInputDecoration(); }