Commit 8cf2d63
committed
gopls/internal/golang: add condition for enabling package move
If the package name does not match its directory basename, we shouldn't
support renaming to move the package. Don't return the entire package
path in PrepareRename.
This is a follow-up to address https://go-review.git.corp.google.com/c/tools/+/708655/comment/408e97ee_31e00e80/
Change-Id: I74548153a2c4af7b417e132c7d88dd797871f5fe
Reviewed-on: https://go-review.googlesource.com/c/tools/+/710275
Reviewed-by: Robert Findley <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>1 parent 1f054fd commit 8cf2d63
File tree
2 files changed
+13
-3
lines changed- gopls/internal
- golang
- test/marker/testdata/rename
2 files changed
+13
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | | - | |
220 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
221 | 228 | | |
222 | 229 | | |
223 | 230 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments