Add a diagnostics accessor #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Similar to the
diagnosticCountaccessor, provide an interface to get diagnostics from a given state.Use Case
We want to implement and external Lint panel, similar to the
Problemstab in VS-Code, that accumulates all linting messages accross different components. For this, we need a way to access the currently active Diagnostics in the Editor.This will return the diagnostics with their initial positions, though, which may not be accurate when the document has changed in the meantime. For your use case, would defining an update handler that listens for transactions with the
setDiagnosticsEffectand pushes them out to your list not also work?Yes, I have not thought about that. I just tried it our and this will solve our problem.
Thank you for your input and the quick response 🏆
Pull request closed