Skip to content

Support .index.yml config for ruby-lsp

Matthias Käppler requested to merge mk-ruby-lsp-index-yml into master

What does this MR do and why?

Adds .index.yml.example config for ruby-lsp. See https://github.com/Shopify/ruby-lsp?tab=readme-ov-file#configuring-code-indexing.

Copy this to .index.yml (gitignored) to take effect.

This allows us to fine-tune what is being indexed. Since GitLab is quite large, and since by default even dependencies are indexed, resource use and duration is currently high.

I started with the settings we use here: https://gitlab.com/gitlab-org/gitlab/-/blob/master/.solargraph.yml.example?ref_type=heads#L4

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Matthias Käppler

Merge request reports