Thanks, Benjamin.
The virtual environment for the project is stored (locally) within the git repo, but is ignored from git by adding the folder to the .gitignore file. I’ve tried to use index_include_patterns setting in Sublime’s Project settings file, but it looks like I also need to set index_exclude_gitignore: false for this to work. However, setting that to false ultimately means everything is indexed and therefore makes the index_include_patterns redundant.
Is there a way to use index_include_patterns, or similar, without disabling index_exclude_gitignore for files/folders that are in gitignore?