Skip to content

Commit e0d5fae

Browse files
committed
fixes #106355
1 parent 246aab4 commit e0d5fae

File tree

1 file changed

+7
-3
lines changed
  • src/vs/workbench/contrib/debug/browser

1 file changed

+7
-3
lines changed

src/vs/workbench/contrib/debug/browser/repl.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,15 @@ export class Repl extends ViewPane implements IHistoryNavigationWidget {
263263
}
264264

265265
showPreviousValue(): void {
266-
this.navigateHistory(true);
266+
if (!this.isReadonly) {
267+
this.navigateHistory(true);
268+
}
267269
}
268270

269271
showNextValue(): void {
270-
this.navigateHistory(false);
272+
if (!this.isReadonly) {
273+
this.navigateHistory(false);
274+
}
271275
}
272276

273277
focusFilter(): void {
@@ -393,7 +397,7 @@ export class Repl extends ViewPane implements IHistoryNavigationWidget {
393397

394398
acceptReplInput(): void {
395399
const session = this.tree.getInput();
396-
if (session) {
400+
if (session && !this.isReadonly) {
397401
session.addReplExpression(this.debugService.getViewModel().focusedStackFrame, this.replInput.getValue());
398402
revealLastElement(this.tree);
399403
this.history.add(this.replInput.getValue());

0 commit comments

Comments
 (0)