gopls/internal/test/marker/testdata/rename/prepare_move.txt
raw| 1 | This test verifies the behavior of textDocument/prepareRename - we prompt with the full package path. |
| 2 | |
| 3 | -- go.mod -- |
| 4 | module golang.org/lsptests |
| 5 | |
| 6 | go 1.20 |
| 7 | |
| 8 | -- b/b.go -- |
| 9 | package b //@ preparerename("b", "golang.org/lsptests/b") |
| 10 | |
| 11 | -- a/other.go -- |
| 12 | // We prompt with the full package path, but changing a package directory is disabled when the package name does not match its directory base name. |
| 13 | package other //@ preparerename("other", "golang.org/lsptests/a") |