Skip to content

Commit d1fdd63

Browse files
committed
remove unused props
1 parent 0b6f241 commit d1fdd63

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

src/components/CodeMirror.res

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -452,9 +452,6 @@ module CM6 = {
452452
external syntaxHighlighting: (HighlightStyle.t, syntaxConfig) => extension =
453453
"syntaxHighlighting"
454454

455-
@module("@codemirror/language") @val
456-
external defaultHighlightStyle: HighlightStyle.t = "defaultHighlightStyle"
457-
458455
module LanguageSupport = {
459456
@new @module("@codemirror/language")
460457
external make: (t, ~support: array<extension>=?) => extension = "LanguageSupport"
@@ -468,7 +465,7 @@ module CM6 = {
468465
}
469466

470467
@send
471-
external configure: (t, Config.t) => t = "configure"
468+
external _configure: (t, Config.t) => t = "configure"
472469
}
473470

474471
module LRLanguage = {
@@ -752,16 +749,10 @@ let make = (
752749
~className: option<string>=?,
753750
~style: option<ReactDOM.Style.t>=?,
754751
~onChange: option<string => unit>=?,
755-
// Note: onMarkerFocus/onMarkerFocusLeave are kept for backward compatibility but not yet implemented in v6
756-
// These callbacks were used in v5 for hovering over error markers
757-
~onMarkerFocus as _: option<((int, int)) => unit>=?,
758-
~onMarkerFocusLeave as _: option<((int, int)) => unit>=?,
759752
~value: string,
760753
~mode: string,
761754
~readOnly=false,
762755
~lineNumbers=true,
763-
// Note: scrollbarStyle is deprecated in CodeMirror 6 but kept for backward compatibility (ignored)
764-
~scrollbarStyle as _=?,
765756
~keyMap=KeyMap.Default,
766757
~lineWrapping=false,
767758
): React.element => {

src/components/CodeMirror.resi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,11 @@ let make: (
4141
~className: string=?,
4242
~style: ReactDOM.Style.t=?,
4343
~onChange: string => unit=?,
44-
~onMarkerFocus: ((int, int)) => unit=?, // (row, column)
45-
~onMarkerFocusLeave: ((int, int)) => unit=?, // (row, column)
4644
~value: string,
4745
// props for codemirror options
4846
~mode: string,
4947
~readOnly: bool=?,
5048
~lineNumbers: bool=?,
51-
~scrollbarStyle: string=?,
5249
~keyMap: KeyMap.t=?,
5350
~lineWrapping: bool=?,
5451
) => React.element

0 commit comments

Comments
 (0)