Issues With Code Indexing: Index includes global ignores

Describe the Bug

I may be doing something wrong, but I am encountering an issue where my workspace global ignore is showing that files are excluded in the file explorer on the left, but the code indexing shows these files are being indexed.

Steps to Reproduce

Setting my global cursor ignore within the workspace folder: workspace folder includes 1 root directory that has 5 sub folders(all git). For reference, i have excludes for the firmware git project mostly.

"settings": {
		"cursor.general.globalCursorIgnoreList": [
			"**/.env",
			"**/.env.*",
			"**/credentials.json",
			"**/credentials.*.json",
			"**/secret.json",
			"**/secrets.json",
			"**/*.key",
			"**/*.pem",
			"**/*.pfx",
			"**/*.p12",
			"**/*.crt",
			"**/*.cer",
			"**/id_rsa",
			"**/id_dsa",
			"**/.ssh/id_*",
			"**/firmware/*",
			"!**/firmware/food",
			"**/firmware/food/*",
			"!**/firmware/food/taco",
			"!**/firmware/food/burrito",

		],

Expected Behavior

I expect, taco,burrito to be included in the index, but not quesadilla,nachos etc which all exist under food.

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.2.2
VSCode Version: 1.99.3
Commit: faa03b17cce93e8a80b7d62d57f5eda6bb6ab9f0
Date: 2025-07-07T06:13:23.028Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Linux x64 6.8.0-63-generic

Does this stop you from using Cursor

No - Cursor works, but with this issue

I’m running into the same issue, but instead of Linux, I’m using Windows + WSL.

1 Like