Skip to content

[Feature]: Option to change _laravel_ide cache path (e.g. .vscode/_laravel_ide) #470

@indrisepos

Description

@indrisepos

Feature Description

Currently the Laravel VS Code extension generates cache/discovery files in:

vendor/_laravel_ide/discover-xxxx.php

This has some drawbacks:

  • Pollutes the vendor/ folder with non-composer files
  • Can confuse developers and version control if not ignored
  • vendor/ is usually managed by Composer and should not contain IDE-related files

Proposed solution

Please add a configuration option to define the location of these generated files.

For example, a setting like:

{
  "laravel.ideHelper.cachePath": ".vscode/_laravel_ide"
}

This would:

  • Keep IDE cache files out of vendor/
  • Match common convention (.vscode/ or similar hidden project folders)
  • Avoid accidental commits

Workarounds today

  • Add /vendor/_laravel_ide/ to .gitignore
  • Hide the folder in files.exclude

But a configurable cache path would be a cleaner, long-term solution.

Thanks for considering!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions