Sublime Forum

Project setting index_include_patterns overrides global setting

#1

In the official documentation following is stated:

"index_include_patterns" array of strings

Patterns of files to index in the folder. This is added to the global setting of the same name. Anything not matching these patterns will be excluded from the index. This is checked before "index_exclude_patterns".

I have two observations relating to this:

  1. There is no global setting "index_include_patterns" according to my Data/Packages/Default/Preferences.sublime-settings file.
  2. I believe this actually overrides the globally valid list of include patterns.

I’ve tested following:

  1. Open a project without any "index_include_patterns" setting set.
  2. Press Ctrl+Shift+R - a long list of indexed symbols appear
  3. Add "index_include_patterns": ["*.xxx"] to your project settings.
  4. Press Ctrl+Shift+R - an empty list appears
0 Likes

#2

It doesn’t override the setting, it’s as the documentation says: The patterns are added together. If there are no patterns (as is the default) then nothing is excluded, so just adding a pattern to the project file means everything not matching that pattern is excluded.

0 Likes