File tree Expand file tree Collapse file tree
src/vs/workbench/contrib/debug/browser Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( ) ) ;
You can’t perform that action at this time.
0 commit comments