mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-23 07:16:29 +01:00
fixes #106355
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user