From b2b45c41b1551eca20f89505da7caed01c8f4478 Mon Sep 17 00:00:00 2001 From: Chris Leary Date: Fri, 27 Sep 2024 20:26:58 -0700 Subject: [PATCH 1/2] [LSP] Add TextDocumentEdit for textDocument/rename support. --- common/lsp/lsp-protocol.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/common/lsp/lsp-protocol.yaml b/common/lsp/lsp-protocol.yaml index aa048ff76..76a40b34f 100644 --- a/common/lsp/lsp-protocol.yaml +++ b/common/lsp/lsp-protocol.yaml @@ -228,3 +228,13 @@ InlayHint: tooltip?: string paddingLeft?: boolean paddingRight?: boolean + +# -- textDcoument/rename + +OptionalVersionedTextDocumentIdentifier: + <: TextDocumentIdentifier + version?: integer + +TextDocumentEdit: + textDocument: OptionalVersionedTextDocumentIdentifier + edits: object # TextEdit[] From 5eb874c7f58e0d05b0beaf7c9890d775d68c2508 Mon Sep 17 00:00:00 2001 From: Chris Leary Date: Tue, 15 Oct 2024 23:03:47 -0700 Subject: [PATCH 2/2] Update common/lsp/lsp-protocol.yaml Via github UI Co-authored-by: Henner Zeller --- common/lsp/lsp-protocol.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lsp/lsp-protocol.yaml b/common/lsp/lsp-protocol.yaml index 76a40b34f..f5d194fa8 100644 --- a/common/lsp/lsp-protocol.yaml +++ b/common/lsp/lsp-protocol.yaml @@ -237,4 +237,4 @@ OptionalVersionedTextDocumentIdentifier: TextDocumentEdit: textDocument: OptionalVersionedTextDocumentIdentifier - edits: object # TextEdit[] + edits+: TextEdit