Open cretueusebiu opened 2 years ago
you can open developer tools to check the args, menu: help -> toggle developer tools
last item of the array is filepath, this filepath got from activeTextEditor.document.uri.fsPath, no cache
It looks like vscode still reads the file in lowercase even though it the sidebar and Windows Explorer it's renamed. I've cleared the vscode editor and command history, disk cleanup, even restarted my PC.
I had this issue, and the solution for me was to clear the workspace cache in ~/Library/Application Support/Code/User/<workspaceStorage>
.
There is this extension that does it for you in case the naming issue appears again.
When creating a file
Testclass.php
and then renaming it toTestClass.php
, the extension will rename the class back toTestclass
.When running
php php-cs-fixer.phar fix TestClass.php
it will rename the class toTestClass
(the correct way).So I guess it's a problem with the extension.
This is related to the psr_autoloading rule which I have it set to
true
.Is there a cache file maybe I can delete ?