bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.57k stars 93 forks source link

`autoload-dev` seems to be ignored when renaming namespaces #2864

Open BladeMF opened 2 months ago

BladeMF commented 2 months ago

Describe the bug When renaming namespaces, anything defined in autoload-dev in composer.json is ignored.

To Reproduce Define in composer.json:

"autoload": {
    "psr-4": {
      "App\\": "src/"
    }
  },
  "autoload-dev": {
    "psr-4": {
      "Tests\\": "tests/",
    }
  },

Run composer dump-autoload --dev. Then rename the namespace of something in the tests/ folders. Expected behavior The class to remain in the tests folder and in the proper subfolder for the namespace it's in.

Screenshots

Platform and version OS and Intelephense version.