ruby-lsp icon indicating copy to clipboard operation
ruby-lsp copied to clipboard

Matching for `excluded_patterns` in `.index.yml`

Open andyw8 opened this issue 1 year ago • 2 comments

As mentioned in https://github.com/Shopify/ruby-lsp/pull/1827

Let's say we have a file abc.rb that we want to exclude from indexing.

If we try exclude it in index.yml with:

excluded_patterns:
  - "abc.rb"

or

excluded_patterns:
  - "/abc.rb"

then it will still be indexed. Instead we need to write:

excluded_patterns:
  - "**/abc.rb"

which is not so obvious, and is different from other exclusion mechanism such as .gitignore.

andyw8 avatar Mar 27 '24 18:03 andyw8

This issue is being marked as stale because there was no activity in the last 2 months

github-actions[bot] avatar May 27 '24 12:05 github-actions[bot]

@vinistock @st0012 this seems like a bug, right?

(I know we're planning to eliminate the config file, but this would likely also apply to the config settings approach)

andyw8 avatar Jun 10 '24 18:06 andyw8

Note: Even though we are deprecating .index.yml this may still be an issue for the indexing configuration.

andyw8 avatar Jul 18 '24 17:07 andyw8

This issue is being marked as stale because there was no activity in the last 2 months

github-actions[bot] avatar Sep 17 '24 12:09 github-actions[bot]