Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

remote implementations are not linked for method calls #208

@tjdevries

Description

@tjdevries

I'll probably work on this next, but it is not a blocking issue to ship implementations, IMO

Some example tests:

	t.Run("remote_implementations: finuds implementations in signature", func(t *testing.T) {
		r := mustRange(t, w, "file://"+filepath.Join(projectRoot, "implementations_remote.go"), 10, 38)

		monikers := findMonikersByRangeOrReferenceResultID(w, r.ID)
		t.Fatalf("%+v\n", monikers)
	})

	t.Run("remote_implementations: finds implementations on method call", func(t *testing.T) {
		r := mustRange(t, w, "file://"+filepath.Join(projectRoot, "implementations_remote.go"), 11, 12)

		// assertRanges(
		// 	t,
		// 	w,
		// 	findImplementationRangesByRangeOrResultSetID(w, r.ID),
		// 	[]string{"4:5-4:21"},
		// 	"ResponseWriter Implementation (from signature)",
		// )

		monikers := findMonikersByRangeOrReferenceResultID(w, r.ID)
		t.Fatalf("%+v\n", monikers)
	})

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions