Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
parent
798c6d58c6
commit
a42fc48140
|
|
@ -25,7 +25,7 @@ module Ci
|
|||
|
||||
if lsif?(artifact_type)
|
||||
headers[:ProcessLsif] = true
|
||||
headers[:ProcessLsifReferences] = Feature.enabled?(:code_navigation_references, project, default_enabled: false)
|
||||
headers[:ProcessLsifReferences] = Feature.enabled?(:code_navigation_references, project, default_enabled: true)
|
||||
end
|
||||
|
||||
success(headers: headers)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Code navigation displays references when browsing repository
|
||||
merge_request: 39214
|
||||
author:
|
||||
type: changed
|
||||
|
|
@ -42,6 +42,36 @@ After the job succeeds, code intelligence data can be viewed while browsing the
|
|||
|
||||

|
||||
|
||||
## Find references
|
||||
|
||||
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/217392) in GitLab 13.2.
|
||||
> - [Became enabled by default](https://gitlab.com/gitlab-org/gitlab/-/issues/225621) on GitLab 13.3.
|
||||
> - It's enabled on GitLab.com.
|
||||
|
||||
To find where a particular object is being used, you can see links to specific lines of code
|
||||
under the **References** tab:
|
||||
|
||||

|
||||
|
||||
### Enable or disable find references
|
||||
|
||||
Find references is under development but ready for production use.
|
||||
It is deployed behind a feature flag that is **enabled by default**.
|
||||
[GitLab administrators with access to the GitLab Rails console](../../administration/feature_flags.md)
|
||||
can opt to disable it for your instance.
|
||||
|
||||
To disable it:
|
||||
|
||||
```ruby
|
||||
Feature.disable(:code_navigation_references)
|
||||
```
|
||||
|
||||
To enable it:
|
||||
|
||||
```ruby
|
||||
Feature.enable(:code_navigation_references)
|
||||
```
|
||||
|
||||
## Language support
|
||||
|
||||
Generating an LSIF file requires a language server indexer implementation for the
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 39 KiB |
Loading…
Reference in New Issue