Skip to content

Honor editor indexing exclusions in Rubydex - #4265

Open
efegokdemir wants to merge 1 commit into
Shopify:rubydex_adoption_feature_branchfrom
efegokdemir:efe/ruby-lsp-rubydex-exclusions-4253
Open

efegokdemir wants to merge 1 commit into
Shopify:rubydex_adoption_feature_branchfrom
efegokdemir:efe/ruby-lsp-rubydex-exclusions-4253

Conversation

@efegokdemir

Copy link
Copy Markdown

Motivation

Fixes #4253. Ruby LSP's documented excludedPatterns and excludedGems initialization options are ignored with Rubydex, leaving unwanted workspace and gem files in the index.

Implementation

Store the indexing options and apply exclusions after loading the Rubydex config. Resolve workspace patterns and excluded gem names to paths, while preserving includedGems overrides. A server regression checks that excluded workspace and gem declarations are omitted while an included declaration remains indexed.

Automated Tests

The focused regression passed (1 run, 5 assertions). RuboCop and Sorbet passed. bundle exec rake fails on path-sensitive assertions involving macOS /tmp and /private/tmp resolution and the checkout path.

Manual Tests

Not run.

@efegokdemir
efegokdemir requested a review from a team as a code owner November 7, 2026 13:38

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant