Closed resolritter closed 1 year ago
Please bear in mind that I do not have a precise procedure for reproducing this. As mentioned, the problem happens sometimes when I'm doing edits in quick succession.
Closing this since I did not find a way of reliably reproducing the problem. I'll reopen in case I come up with a reproduction scenario.
I'm noticing that sometimes, when I do many edits in a quick succession, the server does not generate the diagnostics as I am expecting. It appears that the diagnostics are lost or not reported correctly. This might have something to do with the events not being processed in the right order, as I'll describe below.
I have the following settings in
coc-settings.json
:I was editing a TypeScript file like this:
[EDIT 1] Then I typed:
[EDIT 2] Then I typed:
The diagnostic events for EDIT 1 appeared after the diagnostic events for EDIT 2 in the logs:
Notably, the event for
Property 'd' does not exist on type 'Console'.
appears after the one forProperty 'di' does not exist on type 'Console'.
. This is unexpected becauseconsole.di
happens afterconsole.d
. It suggests that either