getcursor / cursor

The AI Code Editor
https://cursor.com
25.48k stars 1.59k forks source link

Cannot see folders and files #2411

Open Demir-Utku opened 1 day ago

Demir-Utku commented 1 day ago

After I open my project with cursor, I couldn't see any files and folders in my project. The file explorer doesn't list any files.

I got this error: "The file is not displayed in the text editor because it is a directory."

Bryanoxx commented 1 day ago

Same here 👍

EDIT: This error appears only when a file "package.json" is present in the folder (it switches from folder to file at the moment i create/delete this file)

Version: 0.42.5 VSCode Version: 1.93.1 Commit: 001668006cc714afd397f4ef0d52862f5a095530 Date: 2024-11-14T00:33:36.512Z Electron: 30.4.0 Chromium: 124.0.6367.243 Node.js: 20.15.1 V8: 12.4.254.20-electron.0 OS: Windows_NT x64 10.0.19045

Stormix commented 1 day ago

This probably related to your "explorer.fileNesting.patterns" rules, if you're using: https://github.com/antfu/vscode-file-nesting-config.git or something similar.

Bryanoxx commented 1 day ago

Thank you @Stormix! It was sentry.*.config.* within the package.json property of the File Nesting Config extension that was causing this error ✅

Demir-Utku commented 21 hours ago

@Stormix yes I'm using the file nesting config plugin. What should I change in the explorer.fileNesting.patters config in settings?

Newt0n commented 14 hours ago

@Stormix yes I'm using the file nesting config plugin. What should I change in the explorer.fileNesting.patters config in settings?

@Demir-Utku I'm having the same problem, deleting the updated configuration in explorer.fileNesting.patters, or turning off the explorer.fileNesting.enable optioncan fix it.