Bug 559251 - restored missing validate() events during async computation

Only clear the occurred document events when they were actually consumed
by the filtering. While the async computation is running, filtering is
postponed and events are left in the queue.

This ensures that ICompletionProposalExtension2 can adapt their
replacement length correctly.

Replaced fIsFilterPending with an AtomicBoolean to avoid synchronization
issues when accessed by computation thread.


Change-Id: I92ec82eb43a52301aa0116f00e5d703840348187
Signed-off-by: Julian Honnen <julian.honnen@vector.com>
2 files changed