A collection of characters, stories, and other elements
Sourcegraph is the standard developer platform for code search and navigation at many of the largest and most exacting technology companies. With Sourcegraph, every company has access to the same kind of tools that Google and Facebook developers use every day.
🏎 Symbol search performant at scale
Symbol searches are now indexed for default branches.
🔎 Search performance, efficiency, and reliability improvements
Speed improvements for
repohasfile:, more frequent garbage collections, and support for Unicode search results.
🧠 More accurate TypeScript code intelligence
Jump to definition is more accurate, with fewer false positives.
🐇 Improved efficiency of Git requests
Git requests use protocol version 2 where possible, increasing request efficiency to your code host.
🛠️ Sourcegraph configuration temporary overrides in the UI
Admins can now override config files temporarily to test out changes.
👀 In case you missed it…
Other Sourcegraph updates.
Every detail that changed in this release.
🎖️ Thank you
Sourcegraph couldn’t be what it is without the community.
Symbol search (
type:symbol) is a powerful feature for finding specific symbols, such as a function, variable, or package, and not just all text occurrences of your query. More and more users are taking advantage of symbol search results, which was leading to performance issues for some users with large instances. Symbol search is now indexed for default branches, which is a major improvement for both users running symbol searches and admins with large instances that were having performance issues. On large symbol searches, we’ve seen speed ups by factor of 20x (benchmarks).
Upon upgrading, Sourcegraph will seamlessly & automatically re-index repositories in the background. Once finished, you’ll see substantially improved symbol search performance. In the meantime, Sourcegraph will perform as it would normally.
Prior to upgrading, please consult our 3.7.2+ migration guide to ensure you have enough free disk space.
As we continue to make incremental improvements, Sourcegraph search is getting faster, more efficient, and more reliable across the board. In Sourcegraph 3.7:
repohasfile:filter are now faster.
Out-of-the-box TypeScript code intelligence has been improved with an updated ctags version that includes a built-in TypeScript parser. This means that jump to definition is more accurate for TypeScript files, and the symbols sidebar recognizes more functions and variables with fewer false positives.
We now use Git protocol version 2 with compatible code hosts. This can significantly increase the efficiency and performance of a
git fetch by reducing the amount of data transmitted over the wire, especially when Sourcegraph’s copy is only a few commits behind the remote (a common situation).
As an illustrative example, when Git protocol version 2 is used,
git fetch on an up-to-date clone of Kubernetes is up to 2x faster and consumes up to 4x less client CPU (averaged across 10 runs on a 2015 MacBook Pro).
You can read this blog post for more technical details and performance measurements.
In Sourcegraph 3.5 we introduced the ability to do a multi-line search in by using
\n in queries, however, it was limited to only indexed default (e.g.
master) branches. In 3.7 we expand this option to include unindexed branches so you can now perform multi-line searches on any branch.
Icons have been added to the language extensions in the extension registry, and will soon be added to the external service extensions, such as Codecov and Sentry.
Sourcegraph 3.4 introduced an optional way to load Sourcegraph configuration from a file or Kubernetes config map. It is helpful for teams with Sourcegraph as a critical piece of infrastructure, to be able to check the Sourcegraph configuration into version control. We received feedback that it would be nice to be able to make temporary edits in the web UI and diverge from the files on disk intentionally (i.e., to try an option out before committing it).
You can now set
SITE_CONFIG_ALLOW_EDITS=true to allow the active Sourcegraph configuration to diverge from the file, thus allowing temporary edits. For complete details, see the documentation.
We were proud to host the official liveblog for GopherCon 2019, and all 28 talks are now live.
Some of our favorites were:
EXTSVC_CONFIG_FILE, you may now also specify, e.g.
SITE_CONFIG_ALLOW_EDITS=trueto allow edits to be made to the config in the application which will be overwritten on the next process restart. #4912
repohasfile:are faster at finding repository matches. #4833.
branding.brandNameconfigures the brand name to display in the Sourcegraph <title> element.
repositoryPathPatternoption added to the “Other” external service type for repository name customization.
The changelog for this and previous releases is available on GitHub.
Thank you to the many people who contributed to Sourcegraph since the last release!
From the entire Sourcegraph team (@sourcegraph), happy coding!