Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

Add rough first-draft of document highlight provider - #409

Merged
efritz merged 9 commits into
masterfrom
document-highlight-provider
Jul 8, 2020
Merged

efritz merged 9 commits into
masterfrom
document-highlight-provider

Conversation

@efritz

@efritz efritz commented Jul 1, 2020 •

Copy link
Copy Markdown
Contributor

Part of https://github.com/sourcegraph/sourcegraph/issues/10868. Sibling PRs: https://github.com/sourcegraph/sourcegraph/pull/11822 and sourcegraph/codeintellify#278

This adds support for document highlight providers but only for LSIF (the search providers return no values and the LSP activation does not register the provider at all).

Currently this will do a one-page references request which will get references from the current bundle. We'll filter those out to ensure that it matches the current path and return those ranges. Eventually (planned for 3.18), we will support this by pre-loading this kind of data for visible ranges so we're not doing an additional request on hovers: https://github.com/sourcegraph/sourcegraph/issues/10869.

Kapture 2020-07-01 at 10 03 05

@efritz
efritz marked this pull request as ready for review July 1, 2020 22:38
@efritz
efritz requested review from a team and garobrik July 1, 2020 22:38
@efritz
efritz merged commit 057464f into master Jul 8, 2020
@efritz
efritz deleted the document-highlight-provider branch July 8, 2020 00:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

1 participant