Change information
Commit message:
gopls/internal/server: produce DocumentChange list in golang.Rename
Previously, golang.Rename returned isPkgRenaming and then the server
package add additional DocumentChanges before returning the final list.
This CL moves the logic for creating all edits and transforming them
to a list of DocumentChanges to the golang package.
Change-Id: Iaff2be270cc954ac1d0611cdfa901347247ce21c
Files:
- M gopls/internal/golang/rename.go
- M gopls/internal/server/rename.go
Change size: M
Delta: 2 files changed, 40 insertions(+), 41 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +2 by Robert Findley
TryBots-Pass: LUCI-TryBot-Result-1 by Go LUCI, TryBot-Bypass+1 by Madeline Kalil