codemirror / dev

Development repository for the CodeMirror editor project
https://codemirror.net/
Other
5.96k stars 377 forks source link

Access `view` in `renderMessage` #1375

Closed bradymadden97 closed 6 months ago

bradymadden97 commented 7 months ago

Describe the issue

Sorry, one more request. Can we have access to the view here? Specifically in the renderMessage callback? https://github.com/codemirror/lint/blob/7936880525e8dd9d49d44cdfc818826f00ef0378/src/lint.ts#L395

Seems to follow the pattern of providing the view to renderers. It would allow us to access state from within the renderer, and dispatch in callbacks we set up. Thanks!

Browser and platform

No response

Reproduction link

No response

bradymadden97 commented 6 months ago

If so, and you could tag as 6.6.1, that would be awesome.

marijnh commented 6 months ago

Sure. That's a feature though, so it became 6.7.0