Can atomicRanges be provided as extensions?

I see PluginField.atomicRanges is designed to be used within view plugins.

Since cursor/selection is clearly modeled in state, I think it makes sense to be able to provide a list of atomic ranges as state extensions from StateField.provide.

Thanks.

View plugins are extensions, so you could create a simple extension that just saves the view instance, and uses view.state.field(...) to get the atomic ranges from the state in its atomicRanges provider.