This repository was archived by the owner on Sep 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
Improve code intelligence quality and reduce false positives #2452
Copy link
Copy link
Closed
Labels
team/graphGraph Team (previously Code Intel/Language Tools/Language Platform)Graph Team (previously Code Intel/Language Tools/Language Platform)
Milestone
Description
Code intelligence has broken (I mean P0 broken) a few times in the past couple of weeks in ways that could have been prevented by E2E and unit tests. Also, basic-code-intel is rather slow on large repositories and often times reports false positives in definitions and references, which hampers adoption.
Plan
- Symbol search is too slow to provide jump-to-definition on torvalds/linux https://github.com/sourcegraph/sourcegraph/issues/2257
- Set up E2E tests for code intelligence
- Web app https://github.com/sourcegraph/sourcegraph/pull/2533)
- Browser extension https://github.com/sourcegraph/sourcegraph/pull/2566
- Code intel https://github.com/sourcegraph/sourcegraph/pull/2662
- Fix and write more unit tests for basic-code-intel
- Publish all
sourcegraph/{go,python,...}extensions in CI - Add docs for HTTP basic auth for language servers, and document this in extension READMEs https://github.com/sourcegraph/sourcegraph/issues/2595
- Indicate that basic code intel hovers/defs/refs are fuzzy in the UI (could be a "Fuzzy" label in the tooltip, or other UI treatment in the defs/refs panel) https://github.com/sourcegraph/sourcegraph/issues/1174
- basic-code-intel Add an "Imprecise results" label to references code-intel-extensions#41
- Go Add an "Imprecise results" label to references sourcegraph-go#39
- TypeScript Add "Imprecise results" label to references sourcegraph-typescript#127
- Python Add "Imprecise results" label to references sourcegraph-python#4
- Visual testing with Percy https://github.com/sourcegraph/sourcegraph/pull/2606
- Index file-local definitions in the symbols service
- Adding
fileLocalto the Symbols DB https://github.com/sourcegraph/sourcegraph/pull/2788 - Filtering by
fileLocalFilter by fileLocal code-intel-extensions#63
- Adding
- Index Go packages https://github.com/sourcegraph/sourcegraph/pull/2802
- Reduce false positives in basic-code-intel https://github.com/sourcegraph/sourcegraph/issues/2298
- Perform symbol search on other repositories to find cross-repo definitions
- Fall back to basic code intel when hovers take too long https://github.com/sourcegraph/sourcegraph/issues/2571
- Use
@sourcegraph/lsp-clientin sourcegraph-go Use @sourcegraph/lsp-client sourcegraph-go#28- WIP PR Use @sourcegraph/lsp-client sourcegraph-go#28
- Blocked on issues in Use @sourcegraph/lsp-client sourcegraph-go#28 (comment)
- Incorporate
basic-code-intelinto@sourcegraph/lsp-client - Eliminate dependency on Sourcegraph.com's basic-code-intel in e2e tests https://github.com/sourcegraph/sourcegraph/issues/2681
- Escape the
file:filter in basic code intel Fix unit tests code-intel-extensions#38 (comment)
Test/review plan
- Symbols perf improvements have tests + benchmarks
- E2E/unit tests will be run in CI
- Reducing false positives will have unit tests
sqs
Metadata
Metadata
Assignees
Labels
team/graphGraph Team (previously Code Intel/Language Tools/Language Platform)Graph Team (previously Code Intel/Language Tools/Language Platform)