[!!!async lint plugin] How do I handle proofreading data returned by asynchrony

image

HELP!!!!!!!!!!!!!!!!!!!!!!!

The way we handle it:

  1. Store the current doc in a variable.
  2. Send text of for checking.
  3. When answer comes back, check whether doc is the same as it was under 1. If yes, apply results. If no, go back to step 1.

Dear Johannes,

Thank you for your reply . Are you making it a plugin? How to plug the asynchronous decorations hang into the editor when the editor initializes? When I initialize the plugin, the incoming state has not yet includes the decorations, resulting in only the editing

Yes, you can read about it here: Languagetool plugin

Thanks a lot:grin: