|
|
|
@ -825,10 +825,6 @@ export const EditorUI = (props: EditorUIProps) => { |
|
|
|
|
label: intl.formatMessage({ id: 'editor.explainFunction' }), |
|
|
|
|
contextMenuOrder: 1, // choose the order
|
|
|
|
|
contextMenuGroupId: 'gtp', // create a new grouping
|
|
|
|
|
keybindings: [ |
|
|
|
|
// Keybinding for Ctrl + Shift + E
|
|
|
|
|
monacoRef.current.KeyMod.CtrlCmd | monacoRef.current.KeyMod.Shift | monacoRef.current.KeyCode.KeyE |
|
|
|
|
], |
|
|
|
|
run: async () => { |
|
|
|
|
const file = await props.plugin.call('fileManager', 'getCurrentFile') |
|
|
|
|
const context = await props.plugin.call('fileManager', 'readFile', file) |
|
|
|
|