google / zoekt

Fast trigram based code search
1.67k stars 113 forks source link

Set up precise code intelligence with Sourcegraph #105

Open chrismwendt opened 4 years ago

chrismwendt commented 4 years ago

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:

image

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:

Every 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.

googlebot commented 4 years ago

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

hanwen commented 4 years ago

can you point me to the ToS that govern this service?

chrismwendt commented 4 years ago

can you point me to the ToS that govern this service?

https://about.sourcegraph.com/terms

hanwen commented 4 years ago

sorry for the delays.

The old TOS for Sourcegraph ruffled some feathers in the past, so I'm trying to unruffle them.

sqs commented 4 years ago

@hanwen Thanks. If we can help unruffle anything, let me know (email works, too: sqs@sourcegraph.com).