reason icon indicating copy to clipboard operation
reason copied to clipboard

Inlined functions look wrongly formatted

Open davesnx opened this issue 3 years ago • 2 comments

let editor =
    Tiptap.Editor.use(
      ~provider,
      ~document=ydoc,
      ~renderCursor=CollaborationCursor.renderCursor,
      ~user=initialUser,
      ~onCreate=({editor}: Tiptap.createProps) => {
         onCreateEditor(editor)
      }
   );

Gets formatted to

let editor =
    Tiptap.Editor.use(
      ~provider,
      ~document=ydoc,
      ~renderCursor=CollaborationCursor.renderCursor,
      ~user=initialUser,
      ~onCreate=({editor}: Tiptap.createProps) => {
      onCreateEditor(editor)
    });

davesnx avatar Jun 21 '22 13:06 davesnx

current master formats your example as:

let editor =
  Tiptap.Editor.use(
    ~provider,
    ~document=ydoc,
    ~renderCursor=CollaborationCursor.renderCursor,
    ~user=initialUser,
    ~onCreate=({editor}: Tiptap.createProps) => {
    onCreateEditor(editor)
  });

anmonteiro avatar Nov 25 '24 02:11 anmonteiro

my bad, misjudged where the issue was

anmonteiro avatar Nov 25 '24 02:11 anmonteiro