File tree 1 file changed +7
-3
lines changed
src/vs/workbench/contrib/debug/browser
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -263,11 +263,15 @@ export class Repl extends ViewPane implements IHistoryNavigationWidget {
263
263
}
264
264
265
265
showPreviousValue ( ) : void {
266
- this . navigateHistory ( true ) ;
266
+ if ( ! this . isReadonly ) {
267
+ this . navigateHistory ( true ) ;
268
+ }
267
269
}
268
270
269
271
showNextValue ( ) : void {
270
- this . navigateHistory ( false ) ;
272
+ if ( ! this . isReadonly ) {
273
+ this . navigateHistory ( false ) ;
274
+ }
271
275
}
272
276
273
277
focusFilter ( ) : void {
@@ -393,7 +397,7 @@ export class Repl extends ViewPane implements IHistoryNavigationWidget {
393
397
394
398
acceptReplInput ( ) : void {
395
399
const session = this . tree . getInput ( ) ;
396
- if ( session ) {
400
+ if ( session && ! this . isReadonly ) {
397
401
session . addReplExpression ( this . debugService . getViewModel ( ) . focusedStackFrame , this . replInput . getValue ( ) ) ;
398
402
revealLastElement ( this . tree ) ;
399
403
this . history . add ( this . replInput . getValue ( ) ) ;
You can’t perform that action at this time.
0 commit comments