File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
packages/editor/src/app/documentRenderers/notebook Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import React, {
10
10
useState ,
11
11
} from "react" ;
12
12
import { VscChevronDown , VscChevronRight } from "react-icons/vsc" ;
13
+ import { MonacoBinding } from "y-monaco" ;
13
14
import { Awareness } from "y-protocols/awareness" ;
14
15
import {
15
16
getTypeCellCodeModel ,
@@ -21,7 +22,6 @@ import { ExecutionHost } from "../../../runtime/executor/executionHosts/Executio
21
22
import { getStoreService } from "../../../store/local/stores" ;
22
23
import { HoverTrackerContext } from "./HoverTrackerContext" ;
23
24
import { NotebookCellModel } from "./NotebookCellModel" ;
24
- import { MonacoBinding } from "y-monaco" ;
25
25
26
26
type Props = {
27
27
cell : NotebookCellModel ;
@@ -93,6 +93,13 @@ const NotebookCell: React.FC<Props> = observer((props) => {
93
93
theme : "typecellTheme" ,
94
94
} ) ;
95
95
96
+ // disable per-cell find command (https://github.com/microsoft/monaco-editor/issues/102)
97
+ ( newEditor as any ) . _standaloneKeybindingService . addDynamicKeybinding (
98
+ "-actions.find" ,
99
+ null , // keybinding
100
+ ( ) => { } // need to pass an empty handler
101
+ ) ;
102
+
96
103
if ( initialFocus && initial . current ) {
97
104
initial . current = false ;
98
105
// newEditor.focus();
You can’t perform that action at this time.
0 commit comments