Suggested by Amol Mandhane.
* eglot.el (eglot-completion-at-point): Use length of obj in
:exit-function
GitHub-reference: close https://github.com/joaotavora/eglot/issues/82
(text-properties-at 0 obj)
(when-let ((fn (and (eql insertTextFormat 2)
(eglot--snippet-expansion-fn))))
- (delete-region (car bounds) (point))
+ (delete-region (- (point) (length obj)) (point))
(funcall fn insertText))
(eglot--signal-textDocument/didChange)
(eglot-eldoc-function)))))))