diff options
Diffstat (limited to 'gopls/internal/regtest/misc/call_hierarchy_test.go')
-rw-r--r-- | gopls/internal/regtest/misc/call_hierarchy_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gopls/internal/regtest/misc/call_hierarchy_test.go b/gopls/internal/regtest/misc/call_hierarchy_test.go index 9d98896ce..f0f5d4a41 100644 --- a/gopls/internal/regtest/misc/call_hierarchy_test.go +++ b/gopls/internal/regtest/misc/call_hierarchy_test.go @@ -6,8 +6,8 @@ package misc import ( "testing" - "golang.org/x/tools/internal/lsp/protocol" - . "golang.org/x/tools/internal/lsp/regtest" + "golang.org/x/tools/gopls/internal/lsp/protocol" + . "golang.org/x/tools/gopls/internal/lsp/regtest" ) // Test for golang/go#49125 @@ -23,11 +23,11 @@ package pkg // TODO(rfindley): this could probably just be a marker test. Run(t, files, func(t *testing.T, env *Env) { env.OpenFile("p.go") - pos := env.RegexpSearch("p.go", "pkg") + loc := env.RegexpSearch("p.go", "pkg") var params protocol.CallHierarchyPrepareParams - params.TextDocument.URI = env.Sandbox.Workdir.URI("p.go") - params.Position = pos.ToProtocolPosition() + params.TextDocument.URI = loc.URI + params.Position = loc.Range.Start // Check that this doesn't panic. env.Editor.Server.PrepareCallHierarchy(env.Ctx, ¶ms) |