yarn: add monaco-editor

react-monaco-editor changed to include monaco-editor as a peer dependency.

Also fix breakage for updated monaco-editor version.
This commit is contained in:
David Lechner
2021-11-17 16:06:28 -06:00
committed by David Lechner
parent df0e9805d9
commit 39c66eb98c
3 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -134,7 +134,7 @@ class Editor extends React.Component<EditorProps> implements IContextMenuTarget
label: i18n.translate(EditorStringId.ToggleDocs),
run: () => onToggleDocs(),
keybindings: [
monaco.KeyMod.CtrlCmd | monaco.KeyCode.KEY_D,
monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyD,
],
});
e.addAction({
@@ -153,7 +153,7 @@ class Editor extends React.Component<EditorProps> implements IContextMenuTarget
console.debug('Ctrl-S ignored');
},
keybindings: [
monaco.KeyMod.CtrlCmd | monaco.KeyCode.KEY_S,
monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyS,
],
});
e.focus();