This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Support proximity paths in index fuzzy find.
ClosedPublic

Authored by ioeric on Jun 8 2018, 3:46 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

ioeric created this revision.Jun 8 2018, 3:46 AM
sammccall added inline comments.Jun 11 2018, 2:27 AM
clangd/index/Index.h
275 ↗(On Diff #150478)

Hmm, the returned results have URIs, not paths.

It seems cleaner that the query params be URIs too.
However then we need a way to know which scheme the index expects.

It could expose this information, or the index could accept a path here and do the conversion itself. This indexes need to be "thick" and deal with the URI infrastructure, but may be the simplest way.

What's your thinking here?

ioeric added inline comments.Jun 11 2018, 4:28 AM
clangd/index/Index.h
275 ↗(On Diff #150478)

However then we need a way to know which scheme the index expects.
It could expose this information, or the index could accept a path here and do the conversion itself. This indexes need to be "thick" and deal with the URI infrastructure, but may be the simplest way.

Yeah, I was thinking the same. Also index symbols can have different schemes, and we might not have enough information to know which scheme is preferable until we see a candidate.

sammccall accepted this revision.Jun 11 2018, 4:43 AM
sammccall added inline comments.
clangd/index/Index.h
275 ↗(On Diff #150478)

OK, SGTM

This revision is now accepted and ready to land.Jun 11 2018, 4:43 AM
This revision was automatically updated to reflect the committed changes.