Kaynağa Gözat

remove unnecessary comments

WNomunomu 10 ay önce
ebeveyn
işleme
44d74ad893

+ 1 - 3
packages/editor/src/client/stores/use-editor-settings.ts

@@ -147,8 +147,7 @@ export const useEditorSettings = (
     if (themeExtension == null) {
       return;
     }
-    // React CodeMirror has default theme which is default prec
-    // and extension have to be higher prec here than default theme.
+
     const cleanupFunction = codeMirrorEditor?.appendExtensions(Prec.high(themeExtension));
     return cleanupFunction;
   }, [codeMirrorEditor, themeExtension]);
@@ -168,7 +167,6 @@ export const useEditorSettings = (
       return;
     }
 
-    // Prevent these Keybind from overwriting the originally defined keymap.
     const cleanupFunction = codeMirrorEditor?.appendExtensions(Prec.low(keymapExtension));
     return cleanupFunction;