Several examples show EditorView as taking extensions in its top-level config, such as this one:
https://codemirror.net/examples/bundle/
And the front page example:
https://codemirror.net/demo.js
However, the reference shows extensions in the state:
https://codemirror.net/docs/ref/
And the EditorView reference doesn’t mention extensions, I believe.
Are those first two examples just outdated, or are both options?
I can send PRs to update if that’s helpful.