How to clear diagnostics?

Hi! I’m setDiagnostics using the example here codemirror-lint-demo - CodeSandbox
How do I clear it when user made an update to the content?

You can use setDiagnostics with an empty array to remove all active diagnostics.

1 Like