VSCode text and cquery's internal representation frequently falls out of sync #792
Description
While using cquery with VSCode, I frequently have to reload the window (restarting cquery) because of errors like these:
Note that in the first error the offending line hasn't been changed, although the ones before it were, triggering similar errors in multiple locations. The errors never seem to occur before the change that made them appear. Reverting the change that triggers the errors does not resolve them.
The error occurs randomly at a rate of once or twice per hour.
Occasionally, the error seems to resolve itself during auto completion requests around the broken area, but this seems rare, and I suspect it's just cquery crashing and restarting.
As a workaround, I think an option to run the text sync in full update mode should resolve the issue, but I don't know enough about the internals of cquery to test it myself.