In a clean x/tools repo, using tip go1.23 and tip gopls, in VS Code, rename package frob in gopls/internal/util/frob/frob.go
to "blorf" using this command:
xtools$ gopls rename -w ~/w/xtools/gopls/internal/util/frob/frob.go:#1151 blorf
gopls: getFile: file:///Users/adonovan/w/xtools/gopls/internal/util/frob: read /Users/adonovan/w/xtools/gopls/internal/util/frob: is a directory
The error appears to arise from a WorkspaceEdit containing a rename DocumentChange referring to a directory.
In a clean x/tools repo, using tip go1.23 and tip gopls, in VS Code, rename
package frob
in gopls/internal/util/frob/frob.go to "blorf" using this command:The error appears to arise from a WorkspaceEdit containing a rename DocumentChange referring to a directory.