Cursor is indexing files despite my .cursorignore

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I specified .json in my .cursorignore file, yet I get ten of thousand of .json file indexed.

Steps to Reproduce

I deleted all workspaces and project in .cursor, then ran latest 3.7.27 version and started indexing.
Put this in .cursorignore

# Add directories or file patterns to ignore during indexing (e.g. foo/ or *.csv)
.json
.jsonl
.csv
.png
.jpg
.gz

and have thousand of .json in subfolders.

Expected Behavior

It should not index files that match one of my .cursorignore

Screenshots / Screen Recordings

Operating System

Linux

Version Information

Version: 3.7.27
VS Code Extension API: 1.105.1
Commit: e48ee6102a199492b0c9964699bf011886708ba0
Date: 2026-06-10T01:46:16.942Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
xterm.js: 6.1.0-beta.256
OS: Linux x64 6.12.63+deb13-amd64

Does this stop you from using Cursor

Yes - Cursor is unusable

More screenshots

Hey, thanks for the report. This isn’t a bug, it’s a syntax detail. .cursorignore uses the standard gitignore format, and the pattern .json matches a file or folder literally named .json, not all files with the .json extension.

To ignore by extension, you need a glob with an asterisk:

*.json
*.jsonl
*.csv
*.png
*.jpg
*.gz

Also, the hint in your file’s comment points to this, it shows an example like *.csv.

Update the patterns and indexing should stop picking up those files. Let me know if anything still gets indexed after that.

Thanks!