I am using
vue-codemirror6 with custom linter that I wrote, after the linter returns an error I would like to do something in vue-land. for that I am trying to listen to event to see if I have diagnostics.
The problem is that
diagnosticCount is returning zero even If I have diagnostic shown.
- You see there is diagnostic error shown and in console
- Once I loose focus from the editor I am getting
DiagnosticCount 1in console.
- If I change the regex to be string, the diagnostic disappear (which is expected), but
DiagnosticCountis still 1.
I tried instead of using
EditorState.transactionExtender to poll (with
diagnosticCount but it’s zero.
Am I doing something wrong here? or this is a bug?