diff --git a/src/webviews/MonacoEditor.tsx b/src/webviews/MonacoEditor.tsx index bffede71..f88c6486 100644 --- a/src/webviews/MonacoEditor.tsx +++ b/src/webviews/MonacoEditor.tsx @@ -16,7 +16,7 @@ loader.config({ monaco: monacoEditor }); export const MonacoEditor = (props: EditorProps) => { const monaco = useMonaco(); const themeState = useThemeState(); - const attr = useUncontrolledFocus(); + const uncontrolledFocus = useUncontrolledFocus(); useEffect(() => { if (monaco) { @@ -28,13 +28,23 @@ export const MonacoEditor = (props: EditorProps) => { }, [monaco, themeState]); return ( -
- - +
+ +
); };