File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/vs/workbench/contrib/notebook/browser/controller Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import { IEditorGroupsService } from 'vs/workbench/services/editor/common/editor
2929import { IEditorService } from 'vs/workbench/services/editor/common/editorService' ;
3030import { Schemas } from 'vs/base/common/network' ;
3131import { IDebugService } from 'vs/workbench/contrib/debug/common/debug' ;
32- import { IInteractiveEditorRequest , IInteractiveEditorService } from 'vs/workbench/contrib/interactiveEditor/common/interactiveEditor' ;
32+ import { CTX_INTERACTIVE_EDITOR_FOCUSED , IInteractiveEditorRequest , IInteractiveEditorService } from 'vs/workbench/contrib/interactiveEditor/common/interactiveEditor' ;
3333import { ICellRange } from 'vs/workbench/contrib/notebook/common/notebookRange' ;
3434import { EditOperation } from 'vs/editor/common/core/editOperation' ;
3535
@@ -418,7 +418,10 @@ registerAction2(class ExecuteCellSelectBelow extends NotebookCellAction {
418418 precondition : ContextKeyExpr . or ( executeThisCellCondition , NOTEBOOK_CELL_TYPE . isEqualTo ( 'markup' ) ) ,
419419 title : localize ( 'notebookActions.executeAndSelectBelow' , "Execute Notebook Cell and Select Below" ) ,
420420 keybinding : {
421- when : NOTEBOOK_CELL_LIST_FOCUSED ,
421+ when : ContextKeyExpr . and (
422+ NOTEBOOK_CELL_LIST_FOCUSED ,
423+ CTX_INTERACTIVE_EDITOR_FOCUSED . negate ( )
424+ ) ,
422425 primary : KeyMod . Shift | KeyCode . Enter ,
423426 weight : NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT
424427 } ,
You can’t perform that action at this time.
0 commit comments