> On 30 Mar 2019, at 14.48, Bram Moolenaar (Vim Github Repository) > <[email protected]> wrote: > > Something like this is in the todo list, in the context of text properties > (which is also related to LSP). > The details haven't been worked out yet. What I was thinking of was reporting > the range of changed lines. Not the text before the change, since that would > involve saving text until it has been dealt with (which may be never). Do you > really need the old text, or just the range of lines that was changed > recently? > >
LSP needs a chronological list with contiguous ranges and new text contents (“change events”), where every change event is with respect to the previous event in the list. Looks a lot like undo information. Any reasons why we couldn’t use (parts of) the undo system for this? Diff for every sync seems a bit heavy, especially when performing a request for every word typed, i.e. autocomplete that pops up all the time or predictive input on mobile. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
