Haehnchen / idea-php-symfony2-plugin

IntelliJ IDEA / PhpStorm Symfony Plugin
https://plugins.jetbrains.com/plugin/7219
MIT License
913 stars 137 forks source link

AssetMapper: Possible for the method autocomplete to be even more precise #2263

Closed weaverryan closed 6 months ago

weaverryan commented 10 months ago

Hi @Haehnchen!

Really nice to finally meet you last week - you are such an asset (no pun intended) to the Symfony World :). You may have noticed in my closing Keynote that, after your recommendation, I upgraded to the LATEST version of the plugin so I would get some nice auto-completion when importing assets installed via importmap:require. That was excellent :).

Now I'm wondering one further thing. In the video below, when I type hljs., it seems to autocomplete every possible method, instead of the specific functions available from the specific file that was imported. Is that accurate? I think, normally, if PhpStorm is sure about the methods from an import, they'll be on top and in bold. Is this expected or something that can be improved even further?

Thank you!

https://github.com/Haehnchen/idea-php-symfony2-plugin/assets/121003/2cf38650-d9ed-415a-8914-81880d7f266a

Haehnchen commented 10 months ago

Really nice to finally meet you last week - you are such an asset (no pun intended) to the Symfony World

thank you for the live coding and the running SymfonyCast episodes, that helps even more to understand it from user experience side.

it seems to autocomplete every possible method

the problem: its provided by PhpStorm even for other elements, but not in more strict known type elements, so i will check if this behavior is able to disable here.

image

image

Haehnchen commented 6 months ago

https://blog.jetbrains.com/phpstorm/2024/04/phpstorm-2024-1-is-now-available/#support-for-symfony’s-assetmapper closed. asset mapper is include in PhpStorm itself, features should go directly into their issue tracker.