-
Notifications
You must be signed in to change notification settings - Fork 3
Description
This plugin could use class map built with composer dump-autoload -o to look for class name under cursor and use it for navigation and inserting of use statements.
As far as I can see the plugin can't do it now.
Class map is written into file vendor/composer/autoload_static.php in $classMap property and holds list of all the classes found in the project like this:
public static $classMap = array (
'Behat\\Gherkin\\Cache\\CacheInterface' => __DIR__ . '/..' . '/behat/gherkin/src/Behat/Gherkin/Cache/CacheInterface.php',
'Behat\\Gherkin\\Cache\\FileCache' => __DIR__ . '/..' . '/behat/gherkin/src/Behat/Gherkin/Cache/FileCache.php',
...There could be classes that are available in several namespaces then plugin could show menu to select which class to proceed with.
Functionality like this is really missing now. There is no working solution for the moment.
Ctags way is not good because tags file is huge (hundreds of megabytes) for big (not huge) projects.
PHP language server is just not stable enough for the moment.
So this could be a killing feature :)