Michael Lingelbach
3800615da9
fix(lsp): handle insertion of previous line ( #17618 )
2022-03-06 07:52:11 -08:00
Michael Lingelbach
a5e475fcc2
fix(lsp): start incremental sync range at previous newline character ( #17610 )
...
This change forces the start of an incremental sync range to begin always on an existing line.
2022-03-05 09:17:56 -08:00
dundargoc
0b0c4f7dfa
chore: fix typos ( #16816 )
...
Co-authored-by: Sean Dewar <seandewar@users.noreply.github.com >
Co-authored-by: Gregory Anders <greg@gpanders.com >
Co-authored-by: Sebastian Volland <seb@baunz.net >
Co-authored-by: Lewis Russell <lewis6991@gmail.com >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2022-01-04 11:07:40 -07:00
Rishikesh Vaishnav
36c401db24
fix(lsp): correctly align start and end range to codepoints during incremental sync ( #16670 )
...
Closes #16624
Fixes two issues with aligning the start position and end position to
codepoints when calculating the start and end range.
When aligning the start position:
* use aligned byte index to calculate character index rather than
the unadjusted byte
When aligning the end position:
* do not adjust the end byte if it falls on a UTF-8 codepoint
* align byte to the first byte of the next codepoint rather than the
last byte of the current codepoint
* compute character character end range on the aligned byte index
This commit also adds additional test coverage, including multibyte operations
that previously failed before this commit.
2021-12-17 18:05:00 -08:00
Gregory Anders
b6e531c1d9
docs(lsp): add annotations for private functions
2021-11-30 09:03:41 +01:00
dundargoc
caa6992a10
chore: fix typos ( #16361 )
...
Co-authored-by: Brede Yabo Sherling Kristensen <bredeyabo@hotmail.com >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
Co-authored-by: István Donkó <istvan.donko@gmail.com >
Co-authored-by: Julian Berman <Julian@GrayVines.com >
Co-authored-by: bryant <bryant@users.noreply.github.com >
Co-authored-by: Michael Lingelbach <m.j.lbach@gmail.com >
Co-authored-by: nlueb <9465658+nlueb@users.noreply.github.com >
Co-authored-by: Leonhard Saam <leonhard.saam@yahoo.com >
Co-authored-by: Jesse Wertheim <jaawerth@gmail.com >
Co-authored-by: dm1try <me@dmitry.it >
Co-authored-by: Jakub Łuczyński <doubleloop@o2.pl >
Co-authored-by: Louis Lebrault <louis.lebrault@gmail.com >
Co-authored-by: Brede Yabo Sherling Kristensen <bredeyabo@hotmail.com >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
Co-authored-by: István Donkó <istvan.donko@gmail.com >
Co-authored-by: Julian Berman <Julian@GrayVines.com >
Co-authored-by: bryant <bryant@users.noreply.github.com >
Co-authored-by: Michael Lingelbach <m.j.lbach@gmail.com >
Co-authored-by: nlueb <9465658+nlueb@users.noreply.github.com >
Co-authored-by: Leonhard Saam <leonhard.saam@yahoo.com >
Co-authored-by: Jesse Wertheim <jaawerth@gmail.com >
Co-authored-by: dm1try <me@dmitry.it >
Co-authored-by: Jakub Łuczyński <doubleloop@o2.pl >
Co-authored-by: Louis Lebrault <louis.lebrault@gmail.com >
2021-11-27 11:10:48 -05:00
Michael Lingelbach
f71be1f87b
fix(lsp): improve incremental sync robustness ( #16358 )
...
closes https://github.com/neovim/neovim/issues/16352
* improve handling of multi-byte deletions
2021-11-18 16:49:46 -05:00
Michael Lingelbach
87a053f126
fix(lsp): fix edge cases in incremental sync ( #16308 )
2021-11-15 08:51:30 -08:00
Michael Lingelbach
2ecf0a4c61
fix(lsp): rewrite incremental sync ( #16252 )
...
* use codeunits/points instead of byte ranges when applicable
* take into account different file formats when computing range and
sending text (dos, unix, and mac supported)
* add tests of incremental sync
2021-11-09 14:37:48 -08:00