Ensure that each editor theme is only created once (#17095)

GitOrigin-RevId: 3551e02fab44fae7fcab5cb12886d45969e3990f
This commit is contained in:
Alf Eaton
2024-02-16 09:05:03 +00:00
committed by Copybot
parent aa17e1e7e1
commit 3f29aa2195
15 changed files with 679 additions and 647 deletions
@@ -134,9 +134,11 @@ export const bracketSelection = (): Extension[] => [
return false
},
}),
EditorView.baseTheme({
'.cm-matchingBracket': {
pointerEvents: 'none',
},
}),
matchingBracketTheme,
]
const matchingBracketTheme = EditorView.baseTheme({
'.cm-matchingBracket': {
pointerEvents: 'none',
},
})