This should fix cases where part of a keyword is left after a completion is inserted.
For instance, using cmp-emoji, typing ":thumbsup" and accepting the completion results in ": :+1:"
Currently running into two errors:
[x] ghost text invalid 'col': out of range when completing on end of line - probably related to https://github.com/Saghen/blink.cmp/issues/257 range end character index was set incorrectly
[x] the second completion is always inserted with the range of the previous completion. Are completions (and specifically the range of the textEdit) being incorrectly cached across contexts when they shouldn't be? This happens even across files, and even when both is_incomplete fields on CompletionResponse are set to true.cmp-emoji reused returned items, so setting textEdit once meant the item being skipped the second time. fixed with a shallow copy
This should fix cases where part of a keyword is left after a completion is inserted.
For instance, using
cmp-emoji
, typing ":thumbsup" and accepting the completion results in ": :+1:"Currently running into two errors:
ghost textrange end character index was set incorrectlyinvalid 'col': out of range
when completing on end of line - probably related to https://github.com/Saghen/blink.cmp/issues/257the second completion is always inserted with the range of the previous completion. Are completions (and specifically therange
of the textEdit) being incorrectly cached across contexts when they shouldn't be? This happens even across files, and even when bothis_incomplete
fields on CompletionResponse are set to true.cmp-emoji
reused returned items, so settingtextEdit
once meant the item being skipped the second time. fixed with a shallow copy