Преглед на файлове

remove unnecessary comments

WNomunomu преди 1 година
родител
ревизия
44d74ad893
променени са 1 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. 1 3
      packages/editor/src/client/stores/use-editor-settings.ts

+ 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;