Skip to content

Commit c89c53d

Browse files
authored
Enable multi line in inline editor. (microsoft#182239)
1 parent 80f0cbc commit c89c53d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/vs/workbench/contrib/notebook/browser/controller/executeActions.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { IEditorGroupsService } from 'vs/workbench/services/editor/common/editor
2929
import { IEditorService } from 'vs/workbench/services/editor/common/editorService';
3030
import { Schemas } from 'vs/base/common/network';
3131
import { 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';
3333
import { ICellRange } from 'vs/workbench/contrib/notebook/common/notebookRange';
3434
import { 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
},

0 commit comments

Comments
 (0)