react-monaco-editor icon indicating copy to clipboard operation
react-monaco-editor copied to clipboard

line prop as defined in README does not exist in code anymore

Open PaulSender opened this issue 3 years ago • 0 comments

Describe the bug You can not use the "line" prop on at least the DiffEditor even though it is defined in the README

To Reproduce Create a DiffEditor component and try passing in the "line" prop as so:

` <DiffEditor original={selectedEvent.prev_content} theme={"vs-dark"} modified={selectedEvent.content} options={{ renderSideBySide: false, codeLens: true, colorDecorators: true }} onMount={onMount} language={file_extensions_dictionary[file_extension] ?? "text"} line={5} // raises TS error: "Property 'line' does not exist on type 'IntrinsicAttributes & DiffEditorProps & { children?: // ReactNode; }'."

/> `

Expected behavior The ability to use the line number prop or its removal from the docs.

PaulSender avatar May 02 '22 13:05 PaulSender