Sublime Forum

Indexing problems

#1

When I install a new node project, sublime takes about 10 minutes indexing at 100% CPU
I added: "index_exclude_patterns": ["/node_modules/*"] to Preferences.sublime-settings, but it didn’t change anything. Is it possible to stop indexing the node_modules folder? It seems like a big problem right now.

If there is no way to exclude the folder can I turn off indexing completely?

Thanks for any help.

0 Likes

#2

"index_exclude_patterns" matches against the absolute path of files, so a pattern like "node_modules/*" would work.

0 Likes

#3

so just the leading / could be the problem?

0 Likes

#4

Correct, the leading / matches the root directory.

0 Likes

#5

Oh that makes sense, thanks

0 Likes