blob: 283f754e8eaf39f2645c7b2cbad76ec080fbdeba [file] [log] [blame]
This test verifies the behavior of textDocument/prepareRename when the experimental package move setting is enabled.
-- settings.json --
{
"packageMove": true
}
-- go.mod --
module golang.org/lsptests
go 1.20
-- b/b.go --
package b //@ preparerename("b", "golang.org/lsptests/b")
-- a/other.go --
package other //@ preparerename("other", "other") // package move disabled when the package name does not match its directory base name