sourcegraph / sourcegraph-public-snapshot

Code AI platform with Code Search & Cody
https://sourcegraph.com
Other
10.12k stars 1.29k forks source link

Support diagnostics (squiggles) in extension API #4102

Open felixfbecker opened 5 years ago

felixfbecker commented 5 years ago

Extensions should be able to report problems about code, (optionally) tied to a file, line, column with a message and code.

This allows to show warnings (code smells that may be issues but not always and therefor should not break CI) on PRs, guiding the reviewer to take a closer look at certain potential issues.

In the future, these can be persisted on the backend and exposed through GraphQL to track the total number of diagnostics over multiple commits (graphs, leaderboard who is removing the most code smells in their commits, ...)

Also in the future, these can be the entry point / source for automatic refactors to apply suggested auto fixes for them.

Instead of being reported by extensions and persisted to the backend, diagnostics could also be uploaded from CI in LSIF.

github-actions[bot] commented 3 years ago

Heads up @joelkw @felixfbecker - the "team/extensibility" label was applied to this issue.