'sublime text 4 how to skip folder with subfolders from indexing

I have the following problem with sublime text 4:

I have scrapy project where I have a folder called .scrapy and this folder contains a lot of small files. the problem is when I open this project in sublime text 4 it starts eating a lot of memory (700+Mb) and CPU (40+%).

what is the proper way to exclude that folder from indexing?

I have tried following settings:

    "folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", ".Trash", ".Trash-*",
        ".scrapy"
    ],
    "binary_file_patterns": ["*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip",
        ".scrapy/**"
    ],
    "index_exclude_patterns": ["*.log", ".scrapy/**"],

that folder stop displaying in sidebar but still have memory usage issue.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source