Replies: 1 comment 2 replies
-
I don't understand what you are doing in the video. Is this Emacs or Vim?
Can you explain very clearly in text form what is it that doesn't happen
correctly today, and what you would like to see happen tomorrow?
…On Mon, Oct 14, 2024, 19:35 Casey Banner ***@***.***> wrote:
Since 3.16, LSP supports the capability insertReplaceSupport. This allows
textEdit to be an InsertReplaceEdit:
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#insertReplaceEdit
As an example of where this is useful:
https://github.com/user-attachments/assets/2e3c2009-8fad-449d-abee-dfd3b8e04acb
In this case, the token is not replaced correctly. I believe
insertReplaceEdit would allow this replacement to occur.
—
Reply to this email directly, view it on GitHub
<#1456>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAC6PQYH5TZIZMZ5TU532BDZ3QFGZAVCNFSM6AAAAABP5RTAJGVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGMYTQMJSGI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since 3.16, LSP supports the capability
insertReplaceSupport
. This allowstextEdit
to be anInsertReplaceEdit
: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#insertReplaceEditAs an example of where this is useful:
eglot_complete_no_overwrite_1.mp4
In this case, the token is not replaced correctly. I believe
insertReplaceEdit
would allow this replacement to occur.Beta Was this translation helpful? Give feedback.
All reactions