strings: the Sourcegraph blog

A collection of characters, stories, and other elements

Sourcegraph 3.40 release

Sourcegraph 3.40 is now available! Here are some highlights from this release:

Search your Python dependencies

Sourcegraph dependencies search now supports Python packages. You can now search through the Python dependencies of your repositories to easily identify the root cause of an error coming from the source code of a dependency or determine if any of your repository dependencies have a security vulnerability. We currently have support for poetry.lock and pipfile.lock files. Check out this example search on Sourcegraph Cloud.

Local navigation for the top 8 languages is now faster and more accurate

We previously improved navigation speed for Java code in Sourcegraph 3.39 by using tree-sitter. We’re now using tree-sitter for Go, C#, Python, JavaScript, TypeScript, C/C++, and Ruby as well. Hover tooltips for local variables in those languages will now populate far faster and the results will be more precise, so you can navigate through files quickly and with more confidence in the tooltip information.

Batch Changes on Bitbucket Cloud (experimental)

Batch Changes is now available on Bitbucket Cloud as an experimental feature. Batch Changes was previously only available on self-hosted deployments of Bitbucket; now, you can programmatically define changes across all of your Bitbucket repositories.

code_insights_link_sharing

You can now link to individual Code Insights charts directly via the context menu on each insight and share individual insights with teammates rather than entire dashboards. When you click to share an insight, it will indicate which other groups of users can see the insight. To share an insight chart, it will need to be on at least one global or org-wide dashboard, and the share link will enforce the permissions of the dashboard(s) with the insight. You can read more about Code Insights link sharing in our docs.

Changelog highlights

Code InsightsCode Insights will now automatically generate queries with a default value of `fork:no` and `archived:no` if these fields are not specified by the user. This removes the need to manually add these fields to have consistent behavior from historical to non-historical results.Search`type:commit` and `type:diff` searches containing `and`, `or`, and `not` queries have been optimized, and now return results significantly faster.Search`-language` is a valid filter, but the web app previously displayed it as invalid. This bug has been fixed to reflect it as valid.Search`search.largeFiles` now supports recursive globs. For example, it is now possible to configure `search.largeFiles` with a pattern like `**/*.lock` to index all lock files in a repository and make them searchable, even when they are larger than 1 MB each.AdminThe `setRepositoryPermissionsUnrestricted` mutation was added, which allows you to explicitly mark a repo as available to all Sourcegraph users on your instance. This allows you to open up repositories to all new users on your instance without needing to add new users individually when they join.
* Please contact Sourcegraph with any licensing questions.