From e0d5fae35ff101b37da0c8bee61551ceeb6a2e1c Mon Sep 17 00:00:00 2001 From: isidor Date: Thu, 10 Sep 2020 17:34:16 +0200 Subject: [PATCH] fixes #106355 --- src/vs/workbench/contrib/debug/browser/repl.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/contrib/debug/browser/repl.ts b/src/vs/workbench/contrib/debug/browser/repl.ts index 3a9393d3340..ae1a5b16013 100644 --- a/src/vs/workbench/contrib/debug/browser/repl.ts +++ b/src/vs/workbench/contrib/debug/browser/repl.ts @@ -263,11 +263,15 @@ export class Repl extends ViewPane implements IHistoryNavigationWidget { } showPreviousValue(): void { - this.navigateHistory(true); + if (!this.isReadonly) { + this.navigateHistory(true); + } } showNextValue(): void { - this.navigateHistory(false); + if (!this.isReadonly) { + this.navigateHistory(false); + } } focusFilter(): void { @@ -393,7 +397,7 @@ export class Repl extends ViewPane implements IHistoryNavigationWidget { acceptReplInput(): void { const session = this.tree.getInput(); - if (session) { + if (session && !this.isReadonly) { session.addReplExpression(this.debugService.getViewModel().focusedStackFrame, this.replInput.getValue()); revealLastElement(this.tree); this.history.add(this.replInput.getValue());