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(); }