You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using VScode, If I publish a file from a Composer package to some destination, for example vendor/my_package/src/Trait.php => app/Traits/Trait.php, then I can't rename symbols in the published file (app/Traits/Trait.php).
Error in VSCode output is
Request textDocument/rename failed.
Message: Rename failed. Symbol is defined in stub or excluded files.
Code: 102
This is linked to the configuration Intelephense › Rename: Exclude => **/vendor/**
Without that configuration the symbol is renamed in both the published and vendor files.
I dont think that it is the responsibility of the language server to determine custom project structures. The problem can be solved by adding you package path to intelephense.rename.exclude globs with negation pattern, eg !**/vendor/my-lib/**, at least in my case it helped.
Describe the bug
Using VScode, If I publish a file from a Composer package to some destination, for example
vendor/my_package/src/Trait.php => app/Traits/Trait.php
, then I can't rename symbols in the published file (app/Traits/Trait.php
).Error in VSCode output is
This is linked to the configuration
Intelephense › Rename: Exclude => **/vendor/**
Without that configuration the symbol is renamed in both the published and vendor files.
To Reproduce
Expected behavior
The symbols in the published file should be renamable, while respecting the
Rename: Exclude
rule, thus without impacting the file in /vendor.Platform and version
macOS Sonoma 14.6.1 and Intelephense v1.12.6
Best regards
The text was updated successfully, but these errors were encountered: