Set up precise code intelligence with Sourcegraph #105
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sourcegraph recently added support for precise code intelligence using LSIF, and we're looking for open source projects (such as Zoekt) to try it out!
With LSIF-based code intelligence and the Sourcegraph browser extension, you'll get hover tooltips on GitHub code views and PRs:
You can try it out on my fork before merging https://sourcegraph.com/github.com/chrismwendt/zoekt/-/blob/cmd/zoekt/main.go#L34:23
Without LSIF, you'll only see the default code intelligence, which is fuzzy and based on ctags + text search (in turn powered by Zoekt!).
All you need to do is:
public_repo
scope at https://github.com/settings/tokensPUBLIC_REPO_GITHUB_TOKEN
with that tokenEvery commit thereafter will trigger the LSIF action to generate and upload LSIF data for this repository to Sourcegraph.com. Anyone visiting https://sourcegraph.com/github.com/google/zoekt or viewing this repository with the Sourcegraph browser extension will then see precise code intelligence.