Gopher Robot submitted the change![Open in Gerrit]()
Change information
Commit message:
gopls/internal/protocol: patch RenameParams to extend PositionParams
The LSP states that RenameParams extends TextDocumentPositionParams.
However, the source json definition flattens the text document and
position fields directly to Renameparams, rather than preserving
the inheritance.
This change manually patches the parsed model ensuring the generated
code correctly embeds PositionParams matching the LSP.
Change-Id: I265ceab5fc5c7ce08cfca2ceb81cc9a52f0be503
Files:
- M gopls/internal/cmd/rename.go
- M gopls/internal/protocol/generate/main.go
- M gopls/internal/protocol/generate/output.go
- M gopls/internal/protocol/tsprotocol.go
- M gopls/internal/protocol/tsserver.go
- M gopls/internal/test/integration/fake/editor.go
- M gopls/internal/test/marker/marker_test.go
Change size: M
Delta: 7 files changed, 68 insertions(+), 81 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +2 by Alan Donovan
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Gerrit-MessageType: merged
Gerrit-Project: tools
Gerrit-Branch: master
Gerrit-Change-Id: I265ceab5fc5c7ce08cfca2ceb81cc9a52f0be503
Gerrit-Change-Number: 730040
Gerrit-PatchSet: 8